From 6f9d57baba07433ae628f6e81bcad5d9cdcf62bb Mon Sep 17 00:00:00 2001 From: chiayin Date: Fri, 10 Nov 2023 14:51:42 +0800 Subject: [PATCH] Issues #108: done. --- cypress/fixtures/filterFunnel.cy.js | 6 +++--- src/components/Discover/Map/SidebarFilter.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/fixtures/filterFunnel.cy.js b/cypress/fixtures/filterFunnel.cy.js index a1f8b84..1db1d8c 100644 --- a/cypress/fixtures/filterFunnel.cy.js +++ b/cypress/fixtures/filterFunnel.cy.js @@ -210,7 +210,7 @@ describe('Save Log and Filter', ()=>{ cy.get('.listSequence').find('div[data-draggable="true"]').should('exist'); cy.contains('button', 'Clear').click(); 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); @@ -253,7 +253,7 @@ describe('Save Log and Filter', ()=>{ .click() .trigger('mouseup'); 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); // selected item @@ -287,7 +287,7 @@ describe('Save Log and Filter', ()=>{ cy.get('#startCalendar').click(); cy.get('.p-datepicker td[aria-label="28"]').click({ multiple: true }); 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); // selected item diff --git a/src/components/Discover/Map/SidebarFilter.vue b/src/components/Discover/Map/SidebarFilter.vue index d5cf49e..7f92634 100644 --- a/src/components/Discover/Map/SidebarFilter.vue +++ b/src/components/Discover/Map/SidebarFilter.vue @@ -507,7 +507,7 @@ export default { 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 發送選取的資料 async submit(){