mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
test: fix flaky tests
This commit is contained in:
@@ -468,7 +468,7 @@ test.describe("run tests independently", () => {
|
||||
expect(editorContent).toContain(`${content}${NOTE.content}`);
|
||||
});
|
||||
|
||||
test.only("change title of a locked note", async () => {
|
||||
test("change title of a locked note", async () => {
|
||||
const title = "NEW TITLE!";
|
||||
|
||||
const noteSelector = await createNoteAndCheckPresence();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Test 1</h1>
|
||||
<p dir="ltr">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
|
||||
<p dir="ltr" data-spacing="double">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
|
||||
<br/>
|
||||
Created on: <b>xxx</b><br/>
|
||||
Edited on: <b>xxx</b>
|
||||
|
||||
@@ -147,6 +147,8 @@ test("delete a tag and make sure all associated notes are untagged", async ({
|
||||
await clickMenuItem("delete");
|
||||
});
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
expect(await page.isVisible(tagSelector.build())).toBe(false);
|
||||
|
||||
await navigateTo("notes");
|
||||
|
||||
Reference in New Issue
Block a user