refactor: refs #8484 remove unnecessary intercepts and waits in ticket and zone tests
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
df7945f543
commit
bc2b5976d9
|
@ -30,8 +30,6 @@ describe('Ticket descriptor', () => {
|
|||
|
||||
it('should set the weight of the ticket', () => {
|
||||
cy.visit('/#/ticket/10/summary');
|
||||
cy.intercept('GET', /\/api\/Tickets\/\d/).as('ticket');
|
||||
cy.wait('@ticket');
|
||||
cy.openActionsDescriptor();
|
||||
cy.contains(listItem, setWeightOpt).click();
|
||||
cy.intercept('POST', /\/api\/Tickets\/\d+\/setWeight/).as('weight');
|
||||
|
|
|
@ -9,13 +9,7 @@ describe('ZoneBasicData', () => {
|
|||
});
|
||||
|
||||
it('should throw an error if the name is empty', () => {
|
||||
cy.intercept('GET', /\/api\/Zones\/4./).as('zone');
|
||||
|
||||
cy.wait('@zone').then(() => {
|
||||
cy.get('[data-cy="zone-basic-data-name"] input').type(
|
||||
'{selectall}{backspace}',
|
||||
);
|
||||
});
|
||||
cy.get('[data-cy="zone-basic-data-name"] input').type('{selectall}{backspace}');
|
||||
|
||||
cy.get(saveBtn).click();
|
||||
cy.checkNotification("can't be blank");
|
||||
|
|
Loading…
Reference in New Issue