refs #5888 test: improve tests
This commit is contained in:
parent
1c7ad7946e
commit
76c98c59b9
test/cypress/integration
|
@ -1,35 +1,35 @@
|
||||||
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', () => {
|
||||||
// describe('Create',()=>{
|
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(() => {
|
beforeEach(() => {
|
||||||
// cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
// cy.login('developer');
|
cy.login('developer');
|
||||||
// cy.visit('/#/worker/create');
|
cy.visit('/#/worker/create');
|
||||||
// cy.waitForElement('.q-card');
|
cy.waitForElement('.q-card');
|
||||||
// });
|
});
|
||||||
|
|
||||||
// it('Show all options', function() {
|
it('Show all options', function() {
|
||||||
// cy.get(inputLocation).click();
|
cy.get(inputLocation).click();
|
||||||
// cy.get(locationOptions).should('have.length',5);
|
cy.get(locationOptions).should('have.length',5);
|
||||||
// });
|
});
|
||||||
|
|
||||||
// it('input filter location as "al"', function() {
|
it('input filter location as "al"', function() {
|
||||||
// cy.get(inputLocation).click();
|
cy.get(inputLocation).click();
|
||||||
// cy.get(inputLocation).clear();
|
cy.get(inputLocation).clear();
|
||||||
// cy.get(inputLocation).type('al');
|
cy.get(inputLocation).type('al');
|
||||||
// cy.get(locationOptions).should('have.length',3);
|
cy.get(locationOptions).should('have.length',3);
|
||||||
// });
|
});
|
||||||
// it('input filter location as "ecuador"', function() {
|
it('input filter location as "ecuador"', function() {
|
||||||
// cy.get(inputLocation).click();
|
cy.get(inputLocation).click();
|
||||||
// cy.get(inputLocation).clear();
|
cy.get(inputLocation).clear();
|
||||||
// cy.get(inputLocation).type('ecuador');
|
cy.get(inputLocation).type('ecuador');
|
||||||
// cy.get(locationOptions).should('have.length',1);
|
cy.get(locationOptions).should('have.length',1);
|
||||||
// cy.get(`${locationOptions}:nth-child(1)`).click();
|
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',()=>{
|
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';
|
||||||
|
|
||||||
|
@ -41,24 +41,8 @@ describe('VnLocation', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Show all options', function() {
|
it('Show all options', function() {
|
||||||
// cy.get(inputLocation).click();
|
|
||||||
// cy.get(locationOptions).should('have.length',5);
|
|
||||||
// });
|
|
||||||
|
|
||||||
// it('input filter location as "al"', function() {
|
|
||||||
// cy.get(inputLocation).click();
|
|
||||||
// cy.get(inputLocation).clear();
|
|
||||||
// cy.get(inputLocation).type('al');
|
|
||||||
// cy.get(locationOptions).should('have.length',3);
|
|
||||||
// });
|
|
||||||
// it('input filter location as "ecuador"', function() {
|
|
||||||
cy.get(inputLocation).click();
|
cy.get(inputLocation).click();
|
||||||
// cy.get(inputLocation).clear();
|
cy.get(locationOptions).should('have.length', 1);
|
||||||
// cy.get(inputLocation).type('ecuador');
|
|
||||||
cy.get(locationOptions).should('have.length',1);
|
|
||||||
// cy.get(`${locationOptions}:nth-child(1)`).click();
|
|
||||||
// cy.get(':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > .q-field__input').should('have.text','46600')
|
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue