Compare commits
2 commits
47120c40b0
...
eb2353cdb5
Author | SHA1 | Date | |
---|---|---|---|
Aravinth Manivannan | eb2353cdb5 | ||
Aravinth Manivannan | 1bdc1e0dbb |
|
@ -24,8 +24,11 @@ test("Create admin fixture @setup", async ({ page }) => {
|
||||||
await page.getByLabel("Confirm Password").fill(admin.password);
|
await page.getByLabel("Confirm Password").fill(admin.password);
|
||||||
await page.getByRole("button", { name: "Register Account" }).click();
|
await page.getByRole("button", { name: "Register Account" }).click();
|
||||||
|
|
||||||
|
await new Promise(r => setTimeout(r, 3000));
|
||||||
await page.waitForURL(config.INSTANCE_URL.toString());
|
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(
|
expect(page.locator(".positive > p:nth-child(1)")).toContainText(
|
||||||
"Account was successfully created. Welcome!"
|
"Account was successfully created. Welcome!"
|
||||||
);
|
);
|
||||||
|
|
|
@ -44,6 +44,7 @@ export default class User {
|
||||||
// await dropdown.getByRole("link", { name: "Sign Out" }).click();
|
// await dropdown.getByRole("link", { name: "Sign Out" }).click();
|
||||||
await dropdown.getByText("Sign Out").waitFor();
|
await dropdown.getByText("Sign Out").waitFor();
|
||||||
await dropdown.getByText("Sign Out").click();
|
await dropdown.getByText("Sign Out").click();
|
||||||
|
await new Promise(r => setTimeout(r, 3000));
|
||||||
await page.waitForURL(config.INSTANCE_URL.toString());
|
await page.waitForURL(config.INSTANCE_URL.toString());
|
||||||
|
|
||||||
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
||||||
|
|
Loading…
Reference in a new issue