Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Jan 28, 2025
1 parent 6ff2597 commit 584341d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ Cypress.Commands.add(
frontendConfig = "fallbackDetailViewComponent",
datasetName = "Cypress Dataset",
) => {
cy.intercept("GET", `**/config`, (req) => {
cy.intercept("GET", `**/assets/config.json`, (req) => {
cy.log("URL being used.1", req.url);

req.reply((res) => {
Expand All @@ -512,6 +512,10 @@ Cypress.Commands.add(
console.log("Response from localhost:3000:", response);
cy.log("Response from localhost:3000:", JSON.stringify(response.body));
})
.catch((error) => {
console.log("-=---catch error---=-", error);
cy.log("-=---catch error---=-", error);
})
.its("status")
.should("eq", 200);

Expand All @@ -520,6 +524,10 @@ Cypress.Commands.add(
console.log("Response from localhost:3000:", response);
cy.log("Response from localhost:3000:", JSON.stringify(response.body));
})
.catch((error) => {
console.log("-=---catch error---=-", error);
cy.log("-=---catch error---=-", error);
})
.its("status")
.should("eq", 200);

Expand All @@ -528,6 +536,10 @@ Cypress.Commands.add(
console.log("Response from localhost:4200:", response);
cy.log("Response from localhost:4200:", JSON.stringify(response.body));
})
.catch((error) => {
console.log("-=---catch error---=-", error);
cy.log("-=---catch error---=-", error);
})
.its("status")
.should("eq", 200);

Expand Down

0 comments on commit 584341d

Please sign in to comment.