diff --git a/cypress/e2e/filterFunnel.cy.js b/cypress/e2e/filterFunnel.cy.js index c3d2e0a..d0dc58e 100644 --- a/cypress/e2e/filterFunnel.cy.js +++ b/cypress/e2e/filterFunnel.cy.js @@ -27,52 +27,72 @@ describe('Save Log and Filter', ()=>{ // No selected. cy.contains('button', 'Apply').click(); cy.get('.v-toast__text').should('contain', 'Not selected'); + cy.wait(3000); // Clear selected item. cy.get('.allCheckboxAct') // 選取 all select - .find('input') - .should('not.be.visible').check({ force: true}).should('be.checked'); // 打開隱藏項目並選取 + .find('input') + .should('not.be.visible').check({ force: true}).should('be.checked'); // 打開隱藏項目並選取 cy.contains('button', 'Clear').click(); cy.get('.allCheckboxAct') // 選取 all select - .find('input') - .should('not.be.visible') - .should('not.be.checked') + .find('input') + .should('not.be.visible') + .should('not.be.checked') + cy.wait(3000); + // selected item + cy.get('table tr:nth-child(2) input[type="checkbox"]').check({force: true}); + cy.contains('button', 'Apply').click(); + cy.get('#tabFunnel').click(); + cy.contains('p', 'Sequence'); + cy.contains('span', 'Include'); + cy.contains('button', 'Apply All').click(); - }) + // make sure create map again. + cy.get('header').click(); + cy.get('#iconState').click(); + cy.get('li').first().then($li => { // then() 獲取
Start & End