fix: refs #8717 enable RouteAutonomous tests and adjust notification check in RouteExtendedList
gitea/salix-front/pipeline/pr-dev Build queued...
Details
gitea/salix-front/pipeline/pr-dev Build queued...
Details
This commit is contained in:
parent
cb8362c0fa
commit
c5a05917c0
|
@ -1,4 +1,4 @@
|
|||
describe.skip('RouteAutonomous', () => {
|
||||
describe('RouteAutonomous', () => {
|
||||
const getLinkSelector = (colField) =>
|
||||
`tr:first-child > [data-col-field="${colField}"] > .no-padding > .link`;
|
||||
|
||||
|
@ -49,12 +49,12 @@ describe.skip('RouteAutonomous', () => {
|
|||
cy.get(selectors.firstRowCheckbox).click();
|
||||
cy.get(selectors.createInvoiceBtn).click();
|
||||
cy.dataCy(selectors.reference).type(data.reference);
|
||||
cy.dataCy('attachFile').click();
|
||||
cy.get('.q-file').selectFile('test/cypress/fixtures/image.jpg', {
|
||||
force: true,
|
||||
});
|
||||
cy.dataCy(selectors.saveFormBtn).click();
|
||||
cy.checkNotification(dataSaved);
|
||||
cy.typeSearchbar('{enter}');
|
||||
});
|
||||
|
||||
it('Should display the total price of the selected rows', () => {
|
||||
|
|
|
@ -106,8 +106,8 @@ describe('Route extended list', () => {
|
|||
cy.fillInForm(data);
|
||||
|
||||
cy.dataCy(selectors.saveFormBtn).click();
|
||||
cy.checkNotification(dataCreated);
|
||||
cy.url().should('include', '/summary');
|
||||
cy.checkNotification(dataCreated);
|
||||
});
|
||||
|
||||
it('Should reset changed values when click reset button', () => {
|
||||
|
@ -143,7 +143,7 @@ describe('Route extended list', () => {
|
|||
const downloadsFolder = Cypress.config('downloadsFolder');
|
||||
cy.get(selectors.lastRowSelectCheckBox).click();
|
||||
cy.get(selectors.downloadBtn).click();
|
||||
cy.wait(5000);
|
||||
cy.wait(3000);
|
||||
|
||||
const fileName = 'download.zip';
|
||||
cy.readFile(`${downloadsFolder}/${fileName}`).should('exist');
|
||||
|
|
Loading…
Reference in New Issue