Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ezioruan committed Apr 1, 2021
1 parent c521286 commit 4586684
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ context('Create and Delete Route', () => {

cy.get(this.domSelector.nameSelector).type(name);
cy.contains('Search').click();
cy.contains(name).siblings().contains('Edit').click();
cy.contains(name).siblings().contains('Configure').click();

cy.get(this.domSelector.name).clear().type(newName);
cy.get(this.domSelector.description).clear().type(this.data.description2);
Expand All @@ -154,6 +154,7 @@ context('Create and Delete Route', () => {
});
});


it('should duplicate the route', function () {
cy.visit('/');
cy.contains('Route').click();
Expand Down Expand Up @@ -188,12 +189,11 @@ context('Create and Delete Route', () => {
const { domSelector, data } = this;
const routeNames = [newName, duplicateNewName];
routeNames.forEach(function (routeName) {
cy.get(domSelector.nameSelector).type(routeName);
cy.get(domSelector.name).clear().type(routeName);
cy.contains('Search').click();
cy.contains(routeName).siblings().contains('Delete').click();
cy.contains('button', 'Confirm').click();
cy.get(domSelector.notification).should('contain', data.deleteRouteSuccess);
});

});
});

0 comments on commit 4586684

Please sign in to comment.