Skip to content

Commit

Permalink
test: fix flaky e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed Sep 26, 2023
1 parent d0fbedd commit cd585dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test("encrypt then decrypt text", async ({ page, context }) => {
await retry(async () => {
const textarea = encryptPage.locator("textarea:not([readonly])");
await textarea.clear();
await textarea.type(message);
await textarea.fill(message);

await Promise.all([
encryptPage.waitForSelector(".loading-bar", { timeout: 5 * 1000 }),
Expand Down Expand Up @@ -72,7 +72,7 @@ test("encrypt then decrypt text", async ({ page, context }) => {
await retry(async () => {
const textarea = decryptPage.locator("textarea:not([readonly])");
await textarea.clear();
await textarea.type(encryptedMessage);
await textarea.fill(encryptedMessage);

await Promise.all([
decryptPage.waitForSelector(".loading-bar", { timeout: 5 * 1000 }),
Expand Down

0 comments on commit cd585dd

Please sign in to comment.