Browse Source

test: signout kludge

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5903/head
Raju Udava 1 year ago
parent
commit
4b046557a8
  1. 2
      tests/playwright/pages/SignupPage/index.ts
  2. 7
      tests/playwright/setup/index.ts

2
tests/playwright/pages/SignupPage/index.ts

@ -17,7 +17,7 @@ export class SignupPage extends BasePage {
} }
async goto() { async goto() {
return this.rootPage.goto('/#/signup/'); await this.rootPage.locator('[href="#/signup"]').click();
} }
get() { get() {

7
tests/playwright/setup/index.ts

@ -81,9 +81,10 @@ const setup = async ({ page, isEmptyProject }: { page: Page; isEmptyProject?: bo
await page.goto(`/#/nc/${project.id}/auth`); await page.goto(`/#/nc/${project.id}/auth`);
await page.waitForResponse( // await page.waitForResponse(
resp => resp.url().includes(`api/v1/db/meta/projects/${project.id}/users`) && resp.status() === 200 // resp => resp.url().includes(`api/v1/db/meta/projects/${project.id}/users`) && resp.status() === 200
); // );
await page.waitForTimeout(500);
return { project, token, dbType, workerId } as NcContext; return { project, token, dbType, workerId } as NcContext;
}; };

Loading…
Cancel
Save