Skip to content

Commit

Permalink
web: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed May 10, 2024
1 parent 152794c commit 9195244
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
An edit I madeThis is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1
This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1An edit I made
2 changes: 1 addition & 1 deletion apps/web/__e2e__/keyboard-list-navigation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ test("using Shift+Click when no notes are selected should not crash the app", as
info.setTimeout(60 * 1000);

const { notes } = await populateList(page, 5);
await page.reload();
await notes.focus();

const note = await notes.findNote({ title: "Test note 3" });

Expand Down
6 changes: 2 additions & 4 deletions apps/web/__e2e__/notes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,9 @@ test("change title of a locked note", async ({ page }) => {
await page.waitForTimeout(150);

await page.reload();
await page.waitForTimeout(500);

const editedNote = await notes.findNote({ title, content: NOTE.content });
await notes.waitForList();
const editedNote = await notes.findNote({ title });
await editedNote?.openLockedNote(PASSWORD);
await notes.editor.waitForLoading();
expect(await note?.getTitle()).toContain(title);
expect(await notes.editor.getTitle()).toContain(title);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,25 @@
<link rel="stylesheet" href="https://app.notesnook.com/assets/editor-styles.css?d=0">

<style>
img {
max-width: 100% !important;
height: auto !important;
border-radius: 5px;

.image-container {
display: block;
}

.image-container.align-right {
display: flex;
justify-content: end;
}
.image-container.align-center {
display: flex;
justify-content: center;
}
.image-container.float {
float: left;
}
.image-container.float.align-right {
float: right;
}

body {
background-color: transparent !important;
color: #202124;
Expand Down Expand Up @@ -166,6 +179,6 @@
</head>
<body>
<h1>Test 1</h1>
<p data-spacing="double">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
<p data-block-id="xxx" data-spacing="double">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
</body>
</html>

0 comments on commit 9195244

Please sign in to comment.