Skip to content

Commit

Permalink
feat: update upstream testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteSun committed Jan 22, 2021
1 parent bb67c34 commit 909fc2f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ context('Create and Delete Upstream', () => {
cy.get('#nodes_0_port').clear().type('7000');
cy.contains('Next').click();
cy.contains('Submit').click();
cy.get(domSelectors.notification).should('contain', 'Create upstream successfully');
cy.contains('Create upstream successfully');
cy.get(domSelectors.notification).should('contain', 'Create Upstream Successfully');
cy.contains('Create Upstream Successfully');
cy.wait(sleepTime * 5);
cy.url().should('contains', 'upstream/list');
});
Expand All @@ -57,7 +57,7 @@ context('Create and Delete Upstream', () => {
cy.wait(sleepTime * 5);
cy.contains(name).siblings().contains('Delete').click();
cy.contains('button', 'Confirm').click();
cy.get(domSelectors.notification).should('contain', 'Delete successfully');
cy.get(domSelectors.notification).should('contain', 'Delete Upstream Successfully');
});

it('should create chash upstream', () => {
Expand Down Expand Up @@ -101,7 +101,7 @@ context('Create and Delete Upstream', () => {
// next to finish
cy.contains('Next').click();
cy.contains('Submit').click();
cy.get(domSelectors.notification).should('contain', 'Create upstream successfully');
cy.get(domSelectors.notification).should('contain', 'Create Upstream Successfully');
cy.wait(sleepTime * 5);
cy.url().should('contains', 'upstream/list');
});
Expand All @@ -112,6 +112,6 @@ context('Create and Delete Upstream', () => {
cy.wait(sleepTime * 5);
cy.contains(name).siblings().contains('Delete').click();
cy.contains('button', 'Confirm').click();
cy.get(domSelectors.notification).should('contain', 'Delete successfully');
cy.get(domSelectors.notification).should('contain', 'Delete Upstream Successfully');
});
});

0 comments on commit 909fc2f

Please sign in to comment.