cypress-saveLogAndFilter: save log done.
This commit is contained in:
@@ -29,32 +29,28 @@ describe('Save Log and Filter', ()=>{
|
|||||||
.find('input')
|
.find('input')
|
||||||
.should('not.be.visible').check({ force: true}).should('be.checked'); // 打開隱藏項目並選取
|
.should('not.be.visible').check({ force: true}).should('be.checked'); // 打開隱藏項目並選取
|
||||||
|
|
||||||
|
// click Alpay and click Alppy All
|
||||||
|
cy.contains('button', 'Apply').click();
|
||||||
|
cy.get('#tabFunnel').click();
|
||||||
|
cy.contains('.p-timeline', 'Sequence');
|
||||||
|
cy.contains('button', 'Apply All').click();
|
||||||
|
|
||||||
|
// Save log
|
||||||
|
cy.contains('button', 'Save').click();
|
||||||
|
cy.contains('.swal2-title', 'SAVE NEW FILTER');
|
||||||
|
cy.contains('button', 'OK').click();
|
||||||
|
cy.contains('#swal2-validation-message', 'You need to write something!'); // 不輸入要跳驗證
|
||||||
|
cy.get('.swal2-input').clear().type('random-E2Etesting');
|
||||||
|
cy.contains('button', 'OK').click();
|
||||||
|
cy.contains('#swal2-html-container', 'random-E2Etesting');
|
||||||
|
|
||||||
|
// 回到 Files 檢查是否有新增 Filter 'random-E2Etesting'.
|
||||||
|
cy.visit('https://REDACTED-HOST/files');
|
||||||
|
cy.url().should('include', 'files');
|
||||||
|
cy.contains('.fileName', 'random-E2Etesting');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// cy.visit('https://REDACTED-HOST/files');
|
|
||||||
// cy.get('.min-w-\[216px\]:nth-child(1) > div > .text-neutral-500').click();
|
|
||||||
// cy.get('.text-primary').click();
|
|
||||||
// cy.get('.p-focus').click();
|
|
||||||
// cy.get('.float-right > .btn:nth-child(2)').click();
|
|
||||||
// cy.get('.text-neutral-900').click();
|
|
||||||
// cy.get('.float-right > .btn:nth-child(2)').click();
|
|
||||||
// cy.get('.leading-loose').click();
|
|
||||||
// cy.get('.swal2-container').click();
|
|
||||||
// cy.get('.leading-loose').click();
|
|
||||||
// cy.get('.swal2-cancel').click();
|
|
||||||
// cy.get('.min-w-\[216px\]:nth-child(1) > div').click();
|
|
||||||
// cy.get('.text-primary').click();
|
|
||||||
// cy.get('.text-neutral-900').click();
|
|
||||||
// cy.get('.text-neutral-900').click();
|
|
||||||
// cy.get('.p-focus').click();
|
|
||||||
// cy.get('.float-right > .btn:nth-child(2)').click();
|
|
||||||
// cy.get('.text-neutral-900').click();
|
|
||||||
// cy.get('.float-right > .btn:nth-child(2)').click();
|
|
||||||
// cy.get('.leading-loose').click();
|
|
||||||
// cy.get('.swal2-confirm').click();
|
|
||||||
// cy.get('.swal2-input').type('aaa');
|
|
||||||
// cy.get('.swal2-confirm').click();
|
|
||||||
// cy.get('.swal2-container').click();
|
|
||||||
|
|
||||||
// 進入 fils 頁
|
// 進入 fils 頁
|
||||||
// 點擊 log / 點擊 filter
|
// 點擊 log / 點擊 filter
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="flex justify-between items-center flex-wrap" v-show="showNavbarBreadcrumb">
|
<div class="flex justify-between items-center flex-wrap" v-show="showNavbarBreadcrumb">
|
||||||
<div class="flex flex-1 items-center">
|
<div class="flex flex-1 items-center">
|
||||||
<!-- 回 Files 頁 -->
|
<!-- 回 Files 頁 -->
|
||||||
<router-link to class="mr-4" v-if="navViewName !== 'FILES'">
|
<router-link to class="mr-4" v-if="navViewName !== 'FILES'" id="backPage">
|
||||||
<span @click="$router.back(-1)" class="material-symbols-outlined text-neutral-10 leading-loose">
|
<span @click="$router.back(-1)" class="material-symbols-outlined text-neutral-10 leading-loose">
|
||||||
arrow_back
|
arrow_back
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user