Compare commits

...

2 Commits

Author SHA1 Message Date
Aravinth Manivannan eb2353cdb5
fix: add sleep to wait for page to load
ci/woodpecker/push/woodpecker Pipeline failed Details
2024-01-10 21:00:54 +05:30
Aravinth Manivannan 1bdc1e0dbb
fix: add sleep to wait for page to load 2024-01-10 20:58:58 +05:30
2 changed files with 4 additions and 0 deletions

View File

@ -24,8 +24,11 @@ test("Create admin fixture @setup", async ({ page }) => {
await page.getByLabel("Confirm Password").fill(admin.password);
await page.getByRole("button", { name: "Register Account" }).click();
await new Promise(r => setTimeout(r, 3000));
await page.waitForURL(config.INSTANCE_URL.toString());
await page.locator(".positive > p:nth-child(1)").waitFor();
expect(page.locator(".positive > p:nth-child(1)")).toContainText(
"Account was successfully created. Welcome!"
);

View File

@ -44,6 +44,7 @@ export default class User {
// await dropdown.getByRole("link", { name: "Sign Out" }).click();
await dropdown.getByText("Sign Out").waitFor();
await dropdown.getByText("Sign Out").click();
await new Promise(r => setTimeout(r, 3000));
await page.waitForURL(config.INSTANCE_URL.toString());
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");