diff --git a/cypress/e2e/filterFunnel.cy.js b/cypress/e2e/filterFunnel.cy.js index 3db1c03..ce784e6 100644 --- a/cypress/e2e/filterFunnel.cy.js +++ b/cypress/e2e/filterFunnel.cy.js @@ -191,17 +191,57 @@ describe('Save Log and Filter', ()=>{ // }); // }); - it('Trace', () => { - // select radio - cy.get('input#Trace2').check({ force: true }); // 選取 Radio 'Trace' - cy.wait(3000); + // it('Trace', () => { + // // select radio + // cy.get('input#Trace2').check({ force: true }); // 選取 Radio 'Trace' + // cy.wait(3000); - // click on Trace Number to show a table - cy.contains('td', '#1').click(); - cy.wait(1000); - cy.get('#cyTrace').scrollIntoView().should('be.visible'); // 視窗滾到右邊 - cy.wait(1000); - cy.get('.p-chart').scrollIntoView(); // 視窗拉回來 + // // click on Trace Number to show a table + // cy.contains('td', '#1').click(); + // cy.wait(1000); + // cy.get('#cyTrace').scrollIntoView().should('be.visible'); // 視窗滾到右邊 + // cy.wait(1000); + // cy.get('.p-chart').scrollIntoView(); // 視窗拉回來 + + // // Clear selected item + // cy.get('.p-slider-handle:nth-child(2)') + // .click() + // .trigger('mousedown', { which: 1 }) + // .trigger('mousemove', { clientX: 250 }) + // .xpath('//span[contains(@class, "p-slider-handle")][2]') + // .click() + // .trigger('mouseup'); + // cy.contains('button', 'Clear').click(); + // cy.get('.v-toast__text').should('contain', 'Reset Success'); + // cy.wait(3000); + + // // selected item + // cy.get('.p-slider-handle:nth-child(2)') + // .click() + // .trigger('mousedown', { which: 1 }) + // .trigger('mousemove', { clientX: 250 }) + // .xpath('//span[contains(@class, "p-slider-handle")][2]') + // .click() + // .trigger('mouseup'); + // cy.contains('button', 'Apply').click(); + // cy.contains('button', 'Apply').click(); + // cy.get('#tabFunnel').click(); + // cy.contains('p', 'Trace'); + // 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() 獲取