Skip to content

Commit

Permalink
stabilze e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Zasa-san committed Jan 17, 2025
1 parent 5954271 commit 4714ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cypress/e2e/pdf-display.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ describe('PDF display', () => {
cy.contains('td', 'Entity with pdf (es)');
});

it('should open the pdf sidepanel and show in the correct page', () => {
it('should open the pdf sidepanel and show the correct page', () => {
cy.contains('button', 'Open PDF').scrollIntoView();
cy.contains('button', 'Open PDF').realTouch();
cy.contains('Loading').should('not.exist');
cy.get('#pdf-container').within(() => {
Expand All @@ -260,9 +261,6 @@ describe('PDF display', () => {
cy.get('.highlight-rectangle').should('be.visible');
});
cy.get('#root').toMatchImageSnapshot();
});

it('should only show visible pages', () => {
cy.get('#pdf-container').within(() => {
cy.get('#page-1-container .page').should('be.empty');
cy.get('#page-2-container .page').should('not.be.empty');
Expand Down

0 comments on commit 4714ab6

Please sign in to comment.