Skip to content

Commit

Permalink
test: Removed startRoutesForDatasource command (#33799)
Browse files Browse the repository at this point in the history
- Removed startRoutesForDatasource from Commands file and replaced with
StartDataSourceRoutes from support/Pages/DataSources.
- StartDataSourceRoutes can be used for all the routes associated with
DataSources.[Save/Test/udpate]
  • Loading branch information
NandanAnantharamu committed May 29, 2024
1 parent bb39e4f commit 2f9225a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/client/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,13 +623,6 @@ Cypress.Commands.add("setTinyMceContent", (tinyMceId, content) => {
});
});

Cypress.Commands.add("startRoutesForDatasource", () => {
//cy.server();
cy.intercept("POST", "/api/v1/datasources").as("saveDatasource");
cy.intercept("POST", "/api/v1/datasources/test").as("testDatasource");
cy.intercept("PUT", "/api/v1/datasources/*").as("updateDatasource");
});

Cypress.Commands.add("startServerAndRoutes", () => {
//To update route with intercept after working on alias wrt wait and alias
//cy.server();
Expand Down

0 comments on commit 2f9225a

Please sign in to comment.