Refactor: Remove unnecessary wait times in store-shard-0.spec.ts (#5105)

This commit is contained in:
anovazzi1
2024-12-07 22:30:55 -03:00
committed by GitHub
parent 624a2dde5d
commit d338a3e86f

View File

@ -2,7 +2,6 @@ import { test } from "@playwright/test";
test("should exists Store", { tag: ["@release"] }, async ({ page }) => {
await page.goto("/");
await page.waitForTimeout(1000);
await page.getByTestId("button-store").isVisible();
await page.getByTestId("button-store").isEnabled();
@ -10,10 +9,8 @@ test("should exists Store", { tag: ["@release"] }, async ({ page }) => {
test("should not have an API key", { tag: ["@release"] }, async ({ page }) => {
await page.goto("/");
await page.waitForTimeout(1000);
await page.getByTestId("button-store").click();
await page.waitForTimeout(1000);
await page.getByText("API Key Error").isVisible();
});