Skip to content

Commit

Permalink
Use toHaveText
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 8, 2024
1 parent 9913c16 commit 9079110
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/e2e/specs/editor/various/footnotes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ test.describe( 'Footnotes', () => {
] );

// Check if the numbers in the editor content updated.
const anchorNumber = await editor.canvas
.locator( ':root' )
.evaluate( () => document.querySelector( '.fn' ).textContent );

expect( anchorNumber ).toBe( '1' );
await expect( editor.canvas.locator( '.fn' ) ).toHaveText( '1' );

await editor.canvas.locator( 'p:text("first paragraph")' ).click();

Expand Down

0 comments on commit 9079110

Please sign in to comment.