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
commit d338a3e86f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
});