Skip to content

Commit

Permalink
test: remove broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhmjs authored Jul 16, 2024
1 parent e6e03ba commit a834cda
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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` });
})

0 comments on commit a834cda

Please sign in to comment.