removed a test that wouldn't work for the given user yet

This commit is contained in:
Carlos Jimenez Ruiz 2022-06-09 09:45:00 +02:00
parent 7473dceeea
commit 6038c662f8
1 changed files with 9 additions and 8 deletions

View File

@ -47,12 +47,13 @@ describe('Login', () => {
cy.url().should('contain', '/dashboard');
})
it(`should get redirected to ticket creation after login since salesPerson can do it`, () => {
cy.visit('/#/ticket/create', { failOnStatusCode: false });
cy.url().should('contain', '/#/login?redirect=/ticket/create');
cy.get('input[aria-label="Username"]').type('salesPerson');
cy.get('input[aria-label="Password"]').type('nightmare');
cy.get('button[type="submit"]').click();
cy.url().should('contain', '/#/ticket/create');
})
// ticket creation is not yet implemented, use this test once it is
// it(`should get redirected to ticket creation after login since salesPerson can do it`, () => {
// cy.visit('/#/ticket/create', { failOnStatusCode: false });
// cy.url().should('contain', '/#/login?redirect=/ticket/create');
// cy.get('input[aria-label="Username"]').type('salesPerson');
// cy.get('input[aria-label="Password"]').type('nightmare');
// cy.get('button[type="submit"]').click();
// cy.url().should('contain', '/#/ticket/create');
// })
});