From a834cda9008c8c21277793dbb91827dd7c6264fe Mon Sep 17 00:00:00 2001 From: William Faircloth Date: Tue, 16 Jul 2024 19:55:37 -0400 Subject: [PATCH] test: remove broken test --- tests/test.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/test.ts b/tests/test.ts index ed064b8..104b48e 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -26,14 +26,3 @@ test('guessing latest word works correctly', async ({ page }) => { await expect(page.locator("#hint-5").innerText()).resolves.toContain(word); //await page.screenshot({ path: `screenshots/${word}.png` }); }); - -test('guessing random word works correctly', async ({ page }) => { - const i = Math.floor(Math.random() * words.length); - const word: string = words[i].word; - await page.goto(`/${i}`); - await page.locator("#guessInput").fill(word) - await page.locator("#guessInput").press("Enter"); - await expect(page.isVisible('#hint-5')).resolves.toBeTruthy(); - await expect(page.locator("#hint-5").innerText()).resolves.toContain(word); - //await page.screenshot({ path: `screenshots/${word}.png` }); -})