Skip to content
Snippets Groups Projects
Unverified Commit ada415d1 authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

test: Personal tokens flaky 2 (#30147)

parent f0025d4d
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ const AccountTokensTable = (): ReactElement => { ...@@ -140,7 +140,7 @@ const AccountTokensTable = (): ReactElement => {
<> <>
<AddToken reload={reload} /> <AddToken reload={reload} />
{phase === AsyncStatePhase.LOADING && ( {phase === AsyncStatePhase.LOADING && (
<GenericTable> <GenericTable aria-busy>
<GenericTableHeader>{headers}</GenericTableHeader> <GenericTableHeader>{headers}</GenericTableHeader>
<GenericTableBody>{phase === AsyncStatePhase.LOADING && <GenericTableLoadingTable headerCells={5} />}</GenericTableBody> <GenericTableBody>{phase === AsyncStatePhase.LOADING && <GenericTableLoadingTable headerCells={5} />}</GenericTableBody>
</GenericTable> </GenericTable>
......
...@@ -40,7 +40,9 @@ test.describe.serial('settings-account-profile', () => { ...@@ -40,7 +40,9 @@ test.describe.serial('settings-account-profile', () => {
}); });
test('Personal Access Tokens', async ({ page }) => { test('Personal Access Tokens', async ({ page }) => {
const response = page.waitForResponse('**/api/v1/users.getPersonalAccessTokens');
await page.goto('/account/tokens'); await page.goto('/account/tokens');
await response;
await test.step('expect show empty personal access tokens table', async () => { await test.step('expect show empty personal access tokens table', async () => {
await expect(poAccountProfile.tokensTableEmpty).toBeVisible(); await expect(poAccountProfile.tokensTableEmpty).toBeVisible();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment