feat: Performance timeLabel done.

This commit is contained in:
chiayin
2024-02-01 12:33:11 +08:00
parent bddc1d3a7a
commit d89c5ff4d8
9 changed files with 481 additions and 58 deletions

View File

@@ -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