Fix e2e test

This commit is contained in:
BrunoQuaresma 2024-02-16 19:19:48 +00:00
parent c6d6475f89
commit 847d35503c
1 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,10 @@ test("setup first user", async ({ page }) => {
await page.getByLabel(Language.passwordLabel).fill(constants.password);
await page.getByTestId("create").click();
await expect(page).toHaveURL(/\/workspaces.*/);
await expect(page).toHaveURL(/\/templates.*/);
await page.context().storageState({ path: STORAGE_STATE });
await page.getByTestId("button-select-template").isVisible();
await page
.getByRole("button", { name: "Create template", exact: false })
.isVisible();
});