diff --git a/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts b/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts index 3ffb45cfc8..14fc84c420 100644 --- a/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts +++ b/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts @@ -1,7 +1,7 @@ describe('dashboard', () => { let pageOne describe('pagination', () => { - it('should display different results on click on arrow', () => { + it('should display different results on click on arrow and change url', () => { cy.visit('/') cy.get('gn-ui-record-table') .find('.record-table-col') @@ -17,9 +17,10 @@ describe('dashboard', () => { .invoke('text') .then((text) => { expect(text).not.to.equal(pageOne) + cy.url().should('include', 'page=2') }) }) - it('should display different results on click on specific page', () => { + it('should display different results on click on specific page and change url', () => { cy.visit('/') cy.get('gn-ui-pagination-buttons').find('gn-ui-button').eq(1).click() cy.get('gn-ui-record-table') @@ -28,6 +29,7 @@ describe('dashboard', () => { .invoke('text') .then((text) => { expect(text).to.equal(pageOne) + cy.url().should('include', 'page=1') }) }) })