mirror of
https://github.com/heyman/heynote.git
synced 2024-11-23 08:23:09 +01:00
Remove unnecessary wait time
This commit is contained in:
parent
fcf2c630a6
commit
3883049383
@ -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")
|
||||
@ -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)")
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user