diff --git a/test/cypress/integration/client/clientList.spec.js b/test/cypress/integration/client/clientList.spec.js index 1b41e55cd..f150fc190 100644 --- a/test/cypress/integration/client/clientList.spec.js +++ b/test/cypress/integration/client/clientList.spec.js @@ -43,21 +43,4 @@ describe('Client list', () => { cy.url().should('include', `/customer/${id}/summary`); }); }); - - it.skip('Client founded create ticket', () => { - const search = 'Jessica Jones'; - cy.searchByLabel('Name', search); - cy.clickButtonsDescriptor(2); - cy.waitForElement('#formModel'); - cy.waitForElement('.q-form'); - cy.checkValueSelectForm(1, search); - }); - it.skip('Client founded create order', () => { - const search = 'Jessica Jones'; - cy.searchByLabel('Name', search); - cy.clickButtonsDescriptor(3); - cy.waitForElement('#formModel'); - cy.waitForElement('.q-form'); - cy.checkValueForm(2, search); - }); }); diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 9106a64cd..33dfa85df 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -262,12 +262,6 @@ Cypress.Commands.add('openUserPanel', () => { ).click(); }); -Cypress.Commands.add('clickButtonsDescriptor', (id) => { - cy.get(`.actions > .q-card__actions> .q-btn:nth-child(${id})`) - .invoke('removeAttr', 'target') - .click(); -}); - Cypress.Commands.add('openActions', (row) => { cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click(); }); @@ -281,18 +275,6 @@ Cypress.Commands.add('checkNotification', (type) => { cy.get('.q-notification__message').should('have.text', values[type]); }); -Cypress.Commands.add('checkValueForm', (id, search) => { - cy.get( - `.grid-create > :nth-child(${id}) > .q-field__inner>.q-field__control> .q-field__control-container>.q-field__native >.q-field__input` - ).should('have.value', search); -}); - -Cypress.Commands.add('checkValueSelectForm', (id, search) => { - cy.get( - `.grid-create > :nth-child(${id}) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container>.q-field__native>.q-field__input` - ).should('have.value', search); -}); - Cypress.Commands.add('searchByLabel', (label, value) => { cy.get(`[label="${label}"] > .q-field > .q-field__inner`).type(`${value}{enter}`); });