forked from verdnatura/salix-front
fix: refs #6942 vnLocation
This commit is contained in:
parent
48bde504c9
commit
c1804790a8
|
@ -1,7 +1,8 @@
|
|||
const locationOptions ='[role="listbox"] > div.q-virtual-scroll__content > .q-item'
|
||||
const locationOptions = '[role="listbox"] > div.q-virtual-scroll__content > .q-item';
|
||||
describe('VnLocation', () => {
|
||||
describe('Create', () => {
|
||||
const inputLocation = ':nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
|
||||
const inputLocation =
|
||||
':nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
|
||||
beforeEach(() => {
|
||||
cy.viewport(1280, 720);
|
||||
cy.login('developer');
|
||||
|
@ -18,7 +19,7 @@ describe('VnLocation', () => {
|
|||
cy.get(inputLocation).click();
|
||||
cy.get(inputLocation).clear();
|
||||
cy.get(inputLocation).type('al');
|
||||
cy.get(locationOptions).should('have.length',3);
|
||||
cy.get(locationOptions).should('have.length', 5);
|
||||
});
|
||||
it('input filter location as "ecuador"', function () {
|
||||
cy.get(inputLocation).click();
|
||||
|
@ -26,12 +27,14 @@ describe('VnLocation', () => {
|
|||
cy.get(inputLocation).type('ecuador');
|
||||
cy.get(locationOptions).should('have.length', 1);
|
||||
cy.get(`${locationOptions}:nth-child(1)`).click();
|
||||
cy.get(':nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(2) > .q-icon').click();
|
||||
|
||||
cy.get(
|
||||
':nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(2) > .q-icon'
|
||||
).click();
|
||||
});
|
||||
});
|
||||
describe('Fiscal-data', () => {
|
||||
const inputLocation = ':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
|
||||
const inputLocation =
|
||||
':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
|
||||
|
||||
beforeEach(() => {
|
||||
cy.viewport(1280, 720);
|
||||
|
@ -45,4 +48,4 @@ describe('VnLocation', () => {
|
|||
cy.get(locationOptions).should('have.length', 1);
|
||||
});
|
||||
});
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue