chore: replaced == and != with === and !=== (#10733)
This commit is contained in:
parent
f91f860d1e
commit
abb3aebbba
|
|
@ -12,7 +12,7 @@ describe("Generate New CRUD Page Inside from Mongo as Data Source", function() {
|
|||
});
|
||||
|
||||
beforeEach(function() {
|
||||
if (Cypress.env("Mongo") == 0) {
|
||||
if (Cypress.env("Mongo") === 0) {
|
||||
cy.log("Mongo DB is not found. Using intercept");
|
||||
cy.startInterceptRoutesForMongo();
|
||||
} else cy.log("Mongo DB is found, hence using actual DB");
|
||||
|
|
@ -22,7 +22,7 @@ describe("Generate New CRUD Page Inside from Mongo as Data Source", function() {
|
|||
cy.NavigateToDatasourceEditor();
|
||||
cy.get(datasource.MongoDB).click({ force: true });
|
||||
|
||||
if (Cypress.env("Mongo") == 0) cy.fillMongoDatasourceFormWithURI();
|
||||
if (Cypress.env("Mongo") === 0) cy.fillMongoDatasourceFormWithURI();
|
||||
else cy.fillMongoDatasourceForm();
|
||||
|
||||
cy.generateUUID().then((uid) => {
|
||||
|
|
@ -114,7 +114,7 @@ describe("Generate New CRUD Page Inside from Mongo as Data Source", function() {
|
|||
|
||||
cy.get(datasource.MongoDB).click();
|
||||
|
||||
if (Cypress.env("Mongo") == 0) cy.fillMongoDatasourceFormWithURI();
|
||||
if (Cypress.env("Mongo") === 0) cy.fillMongoDatasourceFormWithURI();
|
||||
else cy.fillMongoDatasourceForm();
|
||||
|
||||
cy.generateUUID().then((uid) => {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ describe("Generate New CRUD Page Inside from My SQL as Data Source", function()
|
|||
});
|
||||
|
||||
beforeEach(function() {
|
||||
if (Cypress.env("MySQL") == 0) {
|
||||
if (Cypress.env("MySQL") === 0) {
|
||||
cy.log("MySQL DB is not found. Using intercept");
|
||||
cy.startInterceptRoutesForMySQL();
|
||||
} else cy.log("MySQL DB is found, hence using actual DB");
|
||||
|
|
|
|||
|
|
@ -3457,7 +3457,7 @@ Cypress.Commands.add("clearPropertyValue", (value) => {
|
|||
.type("{uparrow}", { force: true })
|
||||
.type("{ctrl}{shift}{downarrow}", { force: true });
|
||||
cy.focused().then(($cm) => {
|
||||
if ($cm.contents != "") {
|
||||
if ($cm.contents !== "") {
|
||||
cy.log("The field is empty");
|
||||
cy.get(".CodeMirror textarea")
|
||||
.eq(value)
|
||||
|
|
@ -3544,7 +3544,7 @@ Cypress.Commands.add(
|
|||
.click({ force: true })
|
||||
.wait(500);
|
||||
|
||||
if (action == "Delete")
|
||||
if (action === "Delete")
|
||||
cy.xpath("//div[text()='" + entityNameinLeftSidebar + "']").should(
|
||||
"not.exist",
|
||||
);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ async function getPageRetry(pageId, retries) {
|
|||
}
|
||||
}
|
||||
|
||||
if (page == null) {
|
||||
if (page === null) {
|
||||
throw new Error("Tried getting page " + retries + " times, but failed.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user