test: fix flaky tests

This commit is contained in:
thecodrr
2022-08-06 17:26:25 +05:00
parent a54dcc5632
commit 2f58349ec3
3 changed files with 4 additions and 2 deletions

View File

@@ -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();

View File

@@ -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>

View File

@@ -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");