diff --git a/cypress/e2e/filterFunnel.cy.js b/cypress/e2e/filterFunnel.cy.js index f924190..1f39cea 100644 --- a/cypress/e2e/filterFunnel.cy.js +++ b/cypress/e2e/filterFunnel.cy.js @@ -191,61 +191,63 @@ describe('Save Log and Filter', ()=>{ // }); // }); - it('Sequence, Start & End', () => { + it('Sequence, Sequence', () => { // select radio cy.get('input#Sequence0').should('be.checked'); // 選取 Radio 'Sequence' - cy.contains('label', 'Start activity / End activity') // 選取 Radio 'Have activity(s)' - .prev(2) - .find('input') - .should('have.attr', 'type', 'radio') // select the previous element - .check({ force: true }) - .should('be.checked'); // confirm it's type radio (optional) - cy.get('input[id="Start & End2"]').check({ force: true }); + cy.contains('p', 'Activity Sequence') // 選取包含指定文字的元素 + .nextAll() // 選取所有後續相鄰元素 + .eq(2) // 選取索引為 2 , 下 3 個相鄰元素 + .find('input#Sequence2') // 在下一個相鄰元素中尋找指定的 元素 + .check({ force: true }); // 對該 元素進行勾選操作 // No selected. - cy.contains('button', 'Apply').click(); - cy.get('.v-toast__text').should('contain', 'Both Start and End must be selected'); - cy.wait(3000); + // cy.contains('button', 'Apply').click(); + // cy.get('.v-toast__text').should('contain', 'Select two or more'); + // cy.wait(3000); - // 選取 "start" 的
| Occurrences | -|
|---|---|
| {{ element.label }} | +|
| {{ element.label }} |
@@ -39,11 +39,11 @@
- |