Skip to content

Commit

Permalink
Use toHaveText
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and youknowriad committed Feb 9, 2024
1 parent 5ed64a9 commit d1ebcb3
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 d1ebcb3

Please sign in to comment.