removed a test that wouldn't work for the given user yet
This commit is contained in:
parent
7473dceeea
commit
6038c662f8
|
@ -47,12 +47,13 @@ describe('Login', () => {
|
||||||
cy.url().should('contain', '/dashboard');
|
cy.url().should('contain', '/dashboard');
|
||||||
})
|
})
|
||||||
|
|
||||||
it(`should get redirected to ticket creation after login since salesPerson can do it`, () => {
|
// ticket creation is not yet implemented, use this test once it is
|
||||||
cy.visit('/#/ticket/create', { failOnStatusCode: false });
|
// it(`should get redirected to ticket creation after login since salesPerson can do it`, () => {
|
||||||
cy.url().should('contain', '/#/login?redirect=/ticket/create');
|
// cy.visit('/#/ticket/create', { failOnStatusCode: false });
|
||||||
cy.get('input[aria-label="Username"]').type('salesPerson');
|
// cy.url().should('contain', '/#/login?redirect=/ticket/create');
|
||||||
cy.get('input[aria-label="Password"]').type('nightmare');
|
// cy.get('input[aria-label="Username"]').type('salesPerson');
|
||||||
cy.get('button[type="submit"]').click();
|
// cy.get('input[aria-label="Password"]').type('nightmare');
|
||||||
cy.url().should('contain', '/#/ticket/create');
|
// cy.get('button[type="submit"]').click();
|
||||||
})
|
// cy.url().should('contain', '/#/ticket/create');
|
||||||
|
// })
|
||||||
});
|
});
|
Loading…
Reference in New Issue