feat: Performance timeLabel done.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user