Skip to content

Commit

Permalink
Remove unnecessary wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Dec 25, 2023
1 parent fcf2c63 commit 3883049
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/language-detection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ test("test valid JSON detection", async ({ page }) => {
await page.locator("body").pressSequentially(`
{"test": 1, "key2": "hey!"}
`)
await page.waitForTimeout(1000);
await expect(page.locator("css=.status .status-block.lang")).toHaveText("JSON (auto)")
const block = (await heynotePage.getBlocks())[0]
expect(block.language.name).toBe("json")
Expand All @@ -36,6 +35,5 @@ sol2 = (-b+cmath.sqrt(d))/(2*a)
print('The solution are {0} and {1}'.format(sol1,sol2))
`)
await page.waitForTimeout(3000);
await expect(page.locator("css=.status .status-block.lang")).toHaveText("Python (auto)")
})

0 comments on commit 3883049

Please sign in to comment.