From d89c5ff4d8fb95560ccf1d74d248d24dc61dbf34 Mon Sep 17 00:00:00 2001 From: chiayin Date: Thu, 1 Feb 2024 12:33:11 +0800 Subject: [PATCH] feat: Performance timeLabel done. --- cypress/e2e/fileUploadEtc.cy.js | 34 +- src/components/Discover/Map/SidebarState.vue | 2 +- src/components/Discover/StatusBar.vue | 2 +- src/module/cytoscapeMap.js | 10 +- src/module/setChartData.js | 6 +- src/module/timeLabel.js | 64 ++- src/router/index.js | 20 +- src/stores/files.js | 4 + src/views/Discover/Performance/index.vue | 397 ++++++++++++++++++- 9 files changed, 481 insertions(+), 58 deletions(-) diff --git a/cypress/e2e/fileUploadEtc.cy.js b/cypress/e2e/fileUploadEtc.cy.js index d9912b5..be9df07 100644 --- a/cypress/e2e/fileUploadEtc.cy.js +++ b/cypress/e2e/fileUploadEtc.cy.js @@ -136,24 +136,24 @@ describe('File Upload etc', () => { // .should('include', 'rightFile'); // }); - it('Donwload file.', () => { - const downloadsFolder = Cypress.config('downloadsFolder'); - const path = require('path'); - const filename = path.join(downloadsFolder, 'rightFile.csv'); + // it('Donwload file.', () => { + // const downloadsFolder = Cypress.config('downloadsFolder'); + // const path = require('path'); + // const filename = path.join(downloadsFolder, 'rightFile.csv'); - // 選取檔案 - cy.get('table tbody tr:first-child td:first-child') - .contains('rightFile') - .rightclick(); - cy.get('.p-contextmenu') - .find('li') - .filter(':contains("Download")') - .click(); - cy.wait(2000); - // download to '/cypress/downloads' - cy.readFile(filename); - cy.wait(2000); - }) + // // 選取檔案 + // cy.get('table tbody tr:first-child td:first-child') + // .contains('rightFile') + // .rightclick(); + // cy.get('.p-contextmenu') + // .find('li') + // .filter(':contains("Download")') + // .click(); + // cy.wait(2000); + // // download to '/cypress/downloads' + // cy.readFile(filename); + // cy.wait(2000); + // }); // it('Delete file.', () => { // // select file diff --git a/src/components/Discover/Map/SidebarState.vue b/src/components/Discover/Map/SidebarState.vue index 38cd418..1ef3a50 100644 --- a/src/components/Discover/Map/SidebarState.vue +++ b/src/components/Discover/Map/SidebarState.vue @@ -164,7 +164,7 @@