diff --git a/cypress/e2e/test-select-indexes.cy.js b/cypress/e2e/test-select-indexes.cy.js index 4742eff7..14aec7e9 100644 --- a/cypress/e2e/test-select-indexes.cy.js +++ b/cypress/e2e/test-select-indexes.cy.js @@ -7,7 +7,7 @@ describe(`Test indexes`, () => { cy.deleteAllIndexes() cy.wait(WAITING_TIME) - cy.createIndex('lovies') + cy.createIndex('empty_index') cy.wait(WAITING_TIME) cy.createIndex('movies') cy.wait(WAITING_TIME) @@ -31,12 +31,17 @@ describe(`Test indexes`, () => { cy.wait(WAITING_TIME) }) + after(() => { + cy.deleteAllIndexes() + cy.wait(WAITING_TIME) + }) + beforeEach(() => { cy.visit('/') }) it('Should display the first index based on localeCompare order on the uid', () => { - cy.get('button[aria-haspopup=menu]').contains('lovies 0') + cy.get('button[aria-haspopup=menu]').contains('empty_index 0') }) it('Should list all the indexes inside the select', () => { @@ -46,7 +51,7 @@ describe(`Test indexes`, () => { .children() .should(($p) => { expect($p).to.have.length(3) - expect($p).to.contain('lovies 0') + expect($p).to.contain('empty_index 0') expect($p).to.contain('movies 33') expect($p).to.contain('pokemon 3') }) @@ -79,9 +84,4 @@ describe(`Test indexes`, () => { cy.contains('Bulbasaur') }) }) - - after(() => { - cy.deleteAllIndexes() - cy.wait(WAITING_TIME) - }) })