diff --git a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/Mongo_Spec.js b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/Mongo_Spec.js index 3bc3222897..bb30a15015 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/Mongo_Spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/Mongo_Spec.js @@ -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) => { diff --git a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/MySQL_Spec.js b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/MySQL_Spec.js index 9f3fb11ba7..8ab1d6fe33 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/MySQL_Spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GenerateCRUD/MySQL_Spec.js @@ -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"); diff --git a/app/client/cypress/support/commands.js b/app/client/cypress/support/commands.js index 48142702ac..06638601a2 100644 --- a/app/client/cypress/support/commands.js +++ b/app/client/cypress/support/commands.js @@ -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", ); diff --git a/app/client/gitbook-algolia-lambda.js b/app/client/gitbook-algolia-lambda.js index ae73a6ce87..83c9772131 100644 --- a/app/client/gitbook-algolia-lambda.js +++ b/app/client/gitbook-algolia-lambda.js @@ -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."); }