tests cypress
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
20ec141237
commit
d710d736ca
|
@ -1,5 +1,6 @@
|
||||||
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';
|
||||||
describe('Create', () => {
|
describe('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) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
|
||||||
|
@ -39,13 +40,9 @@ describe('VnLocation', () => {
|
||||||
cy.get(
|
cy.get(
|
||||||
':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(3) > .q-icon'
|
':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(3) > .q-icon'
|
||||||
).click();
|
).click();
|
||||||
cy.get(' .q-card > h1').should('have.text', 'New postcode');
|
cy.get('.q-card > h1').should('have.text', 'New postcode');
|
||||||
cy.get(
|
cy.get(dialogInputs).eq(0).clear('12');
|
||||||
'.q-card > :nth-child(4) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(1) > input'
|
cy.get(dialogInputs).eq(0).type('1234453');
|
||||||
).clear('12');
|
|
||||||
cy.get(
|
|
||||||
'.q-card > :nth-child(4) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(1) > input'
|
|
||||||
).type('1234453');
|
|
||||||
cy.selectOption(
|
cy.selectOption(
|
||||||
'.q-dialog__inner > .column > #formModel > .q-card > :nth-child(4) > :nth-child(2) > .q-field > .q-field__inner > .q-field__control ',
|
'.q-dialog__inner > .column > #formModel > .q-card > :nth-child(4) > :nth-child(2) > .q-field > .q-field__inner > .q-field__control ',
|
||||||
'Valencia'
|
'Valencia'
|
||||||
|
|
Loading…
Reference in New Issue