forked from verdnatura/salix-front
fix: VnLocation > workercreate
This commit is contained in:
parent
c443b0a00f
commit
cb40505f82
|
@ -1,13 +1,13 @@
|
||||||
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('VnLocation', () => {
|
||||||
const dialogInputs = '.q-dialog label input';
|
const dialogInputs = '.q-dialog label input';
|
||||||
describe('Create', () => {
|
describe('Worker Create', () => {
|
||||||
const inputLocation =
|
const inputLocation =
|
||||||
'.q-form .q-card> :nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
|
'.q-form .q-card > :nth-child(3) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container';
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit('/#/worker/create');
|
cy.visit('/#/worker/create', { timeout: 5000 });
|
||||||
cy.waitForElement('.q-card');
|
cy.waitForElement('.q-card');
|
||||||
});
|
});
|
||||||
it('Show all options', function () {
|
it('Show all options', function () {
|
||||||
|
@ -25,8 +25,9 @@ describe('VnLocation', () => {
|
||||||
cy.get(inputLocation).clear();
|
cy.get(inputLocation).clear();
|
||||||
cy.get(inputLocation).type('ecuador');
|
cy.get(inputLocation).type('ecuador');
|
||||||
cy.get(locationOptions).should('have.length.at.least', 1);
|
cy.get(locationOptions).should('have.length.at.least', 1);
|
||||||
cy.get(`${locationOptions}:nth-child(1)`).click();
|
cy.get(
|
||||||
cy.get(inputLocation + '> :nth-child(2) > .q-icon').click();
|
'.q-form .q-card > :nth-child(3) > .q-field > .q-field__inner > .q-field__control > :nth-child(3) > .q-icon'
|
||||||
|
).click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('Fiscal-data', () => {
|
describe('Fiscal-data', () => {
|
||||||
|
|
Loading…
Reference in New Issue