Browse Source

test: disable network rsp wait for token test

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6546/head
Raju Udava 1 year ago
parent
commit
420859c72f
  1. 12
      tests/playwright/pages/Account/Token.ts
  2. 2
      tests/playwright/tests/db/usersAccounts/accountTokenManagement.spec.ts

12
tests/playwright/pages/Account/Token.ts

@ -15,11 +15,13 @@ export class AccountTokenPage extends BasePage {
}
async goto() {
return this.waitForResponse({
uiAction: async () => await this.rootPage.goto('/#/account/tokens'),
httpMethodsToMatch: ['GET'],
requestUrlPathToMatch: `api/v1/tokens`,
});
// return this.waitForResponse({
// uiAction: async () => await this.rootPage.goto('/#/account/tokens'),
// httpMethodsToMatch: ['GET'],
// requestUrlPathToMatch: `api/v1/tokens`,
// });
await this.rootPage.goto('/#/account/tokens');
await this.rootPage.waitForTimeout(1000);
}
get() {

2
tests/playwright/tests/db/usersAccounts/accountTokenManagement.spec.ts

@ -20,7 +20,7 @@ test.describe('User roles', () => {
});
test('Create and Delete token', async () => {
test.slow();
// test.slow();
const parallelId = process.env.TEST_PARALLEL_INDEX ?? '0';
await accountTokenPage.goto();
await accountTokenPage.createToken({ description: `nc_test_${parallelId} test token` });

Loading…
Cancel
Save