Skip to content

Commit

Permalink
Merge pull request wso2#345 from BathiyaL/bl-fix-uncaught-exception-i…
Browse files Browse the repository at this point in the history
…ssue

UI Test : handle uncaught exception
  • Loading branch information
chanaka3d authored Sep 30, 2022
2 parents 2963925 + 72ea6f8 commit 1f7d328
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
import Utils from "@support/utils";

describe("Resource add edit operations", () => {

Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
const { publisher, password, } = Utils.getUserInfo();
const target = '/test';
let testApiId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
import Utils from "@support/utils";

describe("Mock the api response and test it", () => {
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
const { publisher, password, } = Utils.getUserInfo();
const productName = Utils.generateName();
const apiName = Utils.generateName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ import PublisherComonPage from "../../../support/pages/publisher/PublisherComonP
const publisherComonPage = new PublisherComonPage();

describe("prototype apis with security disabled", () => {
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
const userName = 'admin';
const password = 'admin';
const apiName="Prototyped_sample1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import Utils from "@support/utils";

describe("prototype apis with security enabled", () => {
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
const userName = 'admin';
const password = 'admin';
const apiName="Prototyped_sample2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import Utils from "@support/utils";

describe("prototype apis with security enabled", () => {
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
const userName = 'admin';
const password = 'admin';
const apiName="Prototyped_sample3";
Expand Down

0 comments on commit 1f7d328

Please sign in to comment.