fix: #8349 fixed ItemFixedPrice crashing and it's e2e test not working #1289
|
@ -17,12 +17,40 @@ describe('Handle Items FixedPrice', () => {
|
|||
'.q-header > .q-toolbar > :nth-child(1) > .q-btn__content > .q-icon'
|
||||
).click();
|
||||
});
|
||||
it('filter', function () {
|
||||
it('filter by flower type', function () {
|
||||
cy.get('.category-filter > :nth-child(2) > .q-btn__content > .q-icon').click();
|
||||
cy.selectOption('.list > :nth-child(2)', 'Crisantemo');
|
||||
cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content > .q-icon').click();
|
||||
cy.get('tr.cursor-pointer').should('have.length', 1);
|
||||
|
||||
});
|
||||
|
||||
it('filter by buyer and warehouse', function () {
|
||||
cy.selectOption('.list > :nth-child(4)', 'buyerNick');
|
||||
cy.get('tr.cursor-pointer').should('have.length', 2);
|
||||
cy.selectOption('.list > :nth-child(5)', 'Warehouse Two');
|
||||
cy.get('tr.cursor-pointer').should('have.length', 0);
|
||||
});
|
||||
|
||||
it('filter by date', function () {
|
||||
cy.dataCy('Started_inputDate').type('01/01/2001{enter}');
|
||||
|
||||
cy.get('tr.cursor-pointer').should('have.length', 2);
|
||||
cy.dataCy('Ended_inputDate').type('01/02/2002{enter}')
|
||||
cy.get('tr.cursor-pointer').should('have.length', 0);
|
||||
|
||||
});
|
||||
provira marked this conversation as resolved
Outdated
alexm
commented
Se deja en skip?? Se deja en skip??
|
||||
it('filter checkbox', function () {
|
||||
cy.get('[aria-label="Has Min Price"] > .q-checkbox__inner').click();
|
||||
cy.get('tr.cursor-pointer').should('have.length', 0);
|
||||
cy.get('[aria-label="Has Min Price"] > .q-checkbox__inner').click();
|
||||
cy.get('tr.cursor-pointer').should('have.length', 2);
|
||||
cy.get('[aria-label="Show future items"] > .q-checkbox__inner').click();
|
||||
cy.get('tr.cursor-pointer').should('have.length', 0);
|
||||
cy.get('[aria-label="Show future items"] > .q-checkbox__inner').click();
|
||||
cy.get('tr.cursor-pointer').should('have.length', 2);
|
||||
cy.get('[aria-label="Mine"] > .q-checkbox__inner').click();
|
||||
cy.get('tr.cursor-pointer').should('have.length', 0);
|
||||
});
|
||||
|
||||
it('Create and delete ', function () {
|
||||
cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content').click();
|
||||
cy.dataCy('vnTableCreateBtn').click();
|
||||
|
|
Loading…
Reference in New Issue
Usar checkNotification