Skip to content

Commit d63447e

Browse files
authored
Remove the third argument from createNote helper function calls
- The createNote helper function has only two parameters - page and content. But the code is calling the function with three arguments - createNote(page, 'note content', true) - I fixed the code by calling the createNote function by calling it with only first two arguments - I assume the last boolean argument is for the "important" property of a note, but it isn't used here correctly
1 parent ca8c0eb commit d63447e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/5/en/part5d.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,13 +900,13 @@ describe('Note app', () => {
900900
})
901901

902902
test('a new note can be created', async ({ page }) => {
903-
await createNote(page, 'a note created by playwright', true) // highlight-line
903+
await createNote(page, 'a note created by playwright') // highlight-line
904904
await expect(page.getByText('a note created by playwright')).toBeVisible()
905905
})
906906

907907
describe('and a note exists', () => {
908908
beforeEach(async ({ page }) => {
909-
await createNote(page, 'another note by playwright', true) // highlight-line
909+
await createNote(page, 'another note by playwright') // highlight-line
910910
})
911911

912912
test('importance can be changed', async ({ page }) => {

0 commit comments

Comments
 (0)