Issues #108: done.

This commit is contained in:
chiayin
2023-11-10 14:51:42 +08:00
parent 4ee566d7ad
commit 6f9d57baba
2 changed files with 4 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ describe('Save Log and Filter', ()=>{
cy.get('.listSequence').find('div[data-draggable="true"]').should('exist'); cy.get('.listSequence').find('div[data-draggable="true"]').should('exist');
cy.contains('button', 'Clear').click(); cy.contains('button', 'Clear').click();
cy.get('.listSequence').find('div[data-draggable="true"]').should('not.exist'); cy.get('.listSequence').find('div[data-draggable="true"]').should('not.exist');
cy.get('.v-toast__text').should('contain', 'Reset Success'); cy.get('.v-toast__text').should('contain', 'Filter cleared');
cy.wait(3000); cy.wait(3000);
@@ -253,7 +253,7 @@ describe('Save Log and Filter', ()=>{
.click() .click()
.trigger('mouseup'); .trigger('mouseup');
cy.contains('button', 'Clear').click(); cy.contains('button', 'Clear').click();
cy.get('.v-toast__text').should('contain', 'Reset Success'); cy.get('.v-toast__text').should('contain', 'Filter cleared');
cy.wait(3000); cy.wait(3000);
// selected item // selected item
@@ -287,7 +287,7 @@ describe('Save Log and Filter', ()=>{
cy.get('#startCalendar').click(); cy.get('#startCalendar').click();
cy.get('.p-datepicker td[aria-label="28"]').click({ multiple: true }); cy.get('.p-datepicker td[aria-label="28"]').click({ multiple: true });
cy.contains('button', 'Clear').click(); cy.contains('button', 'Clear').click();
cy.get('.v-toast__text').should('contain', 'Reset Success'); cy.get('.v-toast__text').should('contain', 'Filter cleared');
cy.wait(3000); cy.wait(3000);
// selected item // selected item

View File

@@ -507,7 +507,7 @@ export default {
this.$refs.filterTraceView.selectArea = [0, this.$refs.filterTraceView.traceTotal]; this.$refs.filterTraceView.selectArea = [0, this.$refs.filterTraceView.traceTotal];
}; };
// 成功訊息 // 成功訊息
massage ? this.$toast.success('Reset Success.') : null; massage ? this.$toast.success('Filter cleared.') : null;
}, },
// header:Filter 發送選取的資料 // header:Filter 發送選取的資料
async submit(){ async submit(){