Skip to content

Commit

Permalink
Merge pull request #8392 from ToolJet/release/marketplace-1.6
Browse files Browse the repository at this point in the history
Release: Marketplace 1.6 - v2.30.0
  • Loading branch information
akshaysasidrn committed Feb 16, 2024
2 parents a010fba + 320f5ba commit 97b022b
Show file tree
Hide file tree
Showing 351 changed files with 31,432 additions and 13,551 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.29.0
2.30.0
12 changes: 6 additions & 6 deletions cypress-tests/cypress/constants/texts/postgreSql.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export const postgreSqlText = {
labelAddDataSource: "+ add data source",

allDataSources: () => {
return process.env.NODE_ENV === "development"
? "All data sources (41)"
: "All data sources (43)";
return Cypress.env("marketplace_action")
? "All data sources (43)"
: "All data sources (41)";
},
allDatabase: () => {
return process.env.NODE_ENV === "development"
? "Databases (17)"
: "Databases (19)";
return Cypress.env("marketplace_action")
? "Databases (19)"
: "Databases (17)";
},
allApis: "APIs (20)",
allCloudStorage: "Cloud Storages (4)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ import { dataSourceSelector } from "Selectors/dataSource";
import { closeDSModal, deleteDatasource } from "Support/utils/dataSource";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");
data.customText = fake.randomSentence;

describe("Data source Azure Blob Storage", () => {
beforeEach(() => {
cy.appUILogin();
cy.intercept("GET", "/api/v2/data_sources");
data.dataSourceName = fake.lastName
.toLowerCase()
.replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on Azure Blob Storage connection form", () => {
Expand Down Expand Up @@ -48,7 +50,7 @@ describe("Data source Azure Blob Storage", () => {
selectAndAddDataSource(
"cloudstorage",
azureBlobStorageText.azureBlobStorage,
data.lastName
data.dataSourceName
);

// cy.get("[data-cy*='data-source-']")
Expand Down Expand Up @@ -97,7 +99,7 @@ describe("Data source Azure Blob Storage", () => {
"have.text",
"Cannot read properties of undefined (reading 'startsWith')"
);
deleteDatasource(`cypress-${data.lastName}-azure-blob-storage`);
deleteDatasource(`cypress-${data.dataSourceName}-azure-blob-storage`);
});

it("Should verify the functionality of Azure Blob Storage connection form.", () => {
Expand All @@ -110,7 +112,7 @@ describe("Data source Azure Blob Storage", () => {
selectAndAddDataSource(
"cloudstorage",
azureBlobStorageText.azureBlobStorage,
data.lastName
data.dataSourceName
);

fillDataSourceTextField(
Expand Down Expand Up @@ -155,12 +157,12 @@ describe("Data source Azure Blob Storage", () => {

cy.get(commonSelectors.globalDataSourceIcon).click();
cy.get(
`[data-cy="cypress-${data.lastName}-azure-blob-storage-button"]`
`[data-cy="cypress-${data.dataSourceName}-azure-blob-storage-button"]`
).verifyVisibleElement(
"have.text",
`cypress-${data.lastName}-azure-blob-storage`
`cypress-${data.dataSourceName}-azure-blob-storage`
);

deleteDatasource(`cypress-${data.lastName}-azure-blob-storage`);
deleteDatasource(`cypress-${data.dataSourceName}-azure-blob-storage`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import { commonText } from "Texts/common";
import { closeDSModal, deleteDatasource } from "Support/utils/dataSource";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");

describe("Data source BigQuery", () => {
beforeEach(() => {
cy.appUILogin();
cy.intercept("GET", "/api/v2/data_sources");
data.dataSourceName = fake.lastName
.toLowerCase()
.replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on BigQuery connection form", () => {
Expand All @@ -44,7 +46,11 @@ describe("Data source BigQuery", () => {
postgreSqlText.allCloudStorage
);

selectAndAddDataSource("databases", bigqueryText.bigQuery, data.lastName);
selectAndAddDataSource(
"databases",
bigqueryText.bigQuery,
data.dataSourceName
);

cy.get('[data-cy="label-private-key"]').verifyVisibleElement(
"have.text",
Expand Down Expand Up @@ -83,14 +89,18 @@ describe("Data source BigQuery", () => {
bigqueryText.errorInvalidEmailId
);
deleteDatasource(
`cypress-${String(data.lastName).toLowerCase()}-${String(
`cypress-${String(data.dataSourceName).toLowerCase()}-${String(
bigqueryText.bigQuery
).toLowerCase()}`
);
});

it("Should verify the functionality of BigQuery connection form.", () => {
selectAndAddDataSource("databases", bigqueryText.bigQuery, data.lastName);
selectAndAddDataSource(
"databases",
bigqueryText.bigQuery,
data.dataSourceName
);

fillDataSourceTextField(
firestoreText.privateKey,
Expand All @@ -112,9 +122,12 @@ describe("Data source BigQuery", () => {

cy.get(commonSelectors.globalDataSourceIcon).click();
cy.get(
`[data-cy="cypress-${data.lastName}-bigquery-button"]`
).verifyVisibleElement("have.text", `cypress-${data.lastName}-bigquery`);
`[data-cy="cypress-${data.dataSourceName}-bigquery-button"]`
).verifyVisibleElement(
"have.text",
`cypress-${data.dataSourceName}-bigquery`
);

deleteDatasource(`cypress-${data.lastName}-bigquery`);
deleteDatasource(`cypress-${data.dataSourceName}-bigquery`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import {
} from "Support/utils/postgreSql";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");

describe("Data sources", () => {
beforeEach(() => {
cy.appUILogin();
data.dataSourceName = fake.lastName
.toLowerCase()
.replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on connection form", () => {
Expand All @@ -45,7 +47,7 @@ describe("Data sources", () => {
postgreSqlText.allCloudStorage
);

selectAndAddDataSource("databases", "ClickHouse", data.lastName);
selectAndAddDataSource("databases", "ClickHouse", data.dataSourceName);

// cy.get(postgreSqlSelector.dataSourceNameInputField).should(
// //username,password,host,port,protocol,dbname,usepost, trimquery,gzip,debug,raw
Expand Down Expand Up @@ -122,11 +124,11 @@ describe("Data sources", () => {
cy.get('[data-cy="connection-alert-text"]', { timeout: 60000 })
.scrollIntoView()
.verifyVisibleElement("have.text", "getaddrinfo ENOTFOUND undefined");
deleteDatasource(`cypress-${data.lastName}-clickhouse`);
deleteDatasource(`cypress-${data.dataSourceName}-clickhouse`);
});

it("Should verify the functionality of PostgreSQL connection form.", () => {
selectAndAddDataSource("databases", "ClickHouse", data.lastName);
selectAndAddDataSource("databases", "ClickHouse", data.dataSourceName);

fillDataSourceTextField(
postgreSqlText.labelHost,
Expand Down Expand Up @@ -162,8 +164,11 @@ describe("Data sources", () => {
);

cy.get(
`[data-cy="cypress-${data.lastName}-clickhouse-button"]`
).verifyVisibleElement("have.text", `cypress-${data.lastName}-clickhouse`);
deleteDatasource(`cypress-${data.lastName}-clickhouse`);
`[data-cy="cypress-${data.dataSourceName}-clickhouse-button"]`
).verifyVisibleElement(
"have.text",
`cypress-${data.dataSourceName}-clickhouse`
);
deleteDatasource(`cypress-${data.dataSourceName}-clickhouse`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import {
} from "Support/utils/postgreSql";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");

describe("Data sources", () => {
beforeEach(() => {
cy.appUILogin();
data.dataSourceName = fake.lastName
.toLowerCase()
.replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on connection form", () => {
Expand All @@ -44,7 +46,7 @@ describe("Data sources", () => {
"have.text",
postgreSqlText.allCloudStorage
);
selectAndAddDataSource("databases", "CosmosDB", data.lastName);
selectAndAddDataSource("databases", "CosmosDB", data.dataSourceName);

cy.get('[data-cy="label-end-point"]').verifyVisibleElement(
"have.text",
Expand Down Expand Up @@ -83,11 +85,11 @@ describe("Data sources", () => {
"have.text",
"Invalid URL"
);
deleteDatasource(`cypress-${data.lastName}-cosmosdb`);
deleteDatasource(`cypress-${data.dataSourceName}-cosmosdb`);
});

it.only("Should verify the functionality of CosmosDB connection form.", () => {
selectAndAddDataSource("databases", "CosmosDB", data.lastName);
selectAndAddDataSource("databases", "CosmosDB", data.dataSourceName);

fillDataSourceTextField(
"End point",
Expand All @@ -112,8 +114,11 @@ describe("Data sources", () => {
);

cy.get(
`[data-cy="cypress-${data.lastName}-cosmosdb-button"]`
).verifyVisibleElement("have.text", `cypress-${data.lastName}-cosmosdb`);
deleteDatasource(`cypress-${data.lastName}-cosmosdb`);
`[data-cy="cypress-${data.dataSourceName}-cosmosdb-button"]`
).verifyVisibleElement(
"have.text",
`cypress-${data.dataSourceName}-cosmosdb`
);
deleteDatasource(`cypress-${data.dataSourceName}-cosmosdb`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ import {
} from "Support/utils/postgreSql";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");

describe("Data sources", () => {
beforeEach(() => {
cy.appUILogin();
data.dataSourceName = fake.lastName
.toLowerCase()
.replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on CouchDB connection form", () => {
Expand All @@ -46,7 +48,7 @@ describe("Data sources", () => {
postgreSqlText.allCloudStorage
);

selectAndAddDataSource("databases", "CouchDB", data.lastName);
selectAndAddDataSource("databases", "CouchDB", data.dataSourceName);

cy.get(postgreSqlSelector.labelHost).verifyVisibleElement(
"have.text",
Expand Down Expand Up @@ -104,11 +106,11 @@ describe("Data sources", () => {
"have.text",
"Invalid URL"
);
deleteDatasource(`cypress-${data.lastName}-couchdb`);
deleteDatasource(`cypress-${data.dataSourceName}-couchdb`);
});

it("Should verify the functionality of CouchDB connection form.", () => {
selectAndAddDataSource("databases", "CouchDB", data.lastName);
selectAndAddDataSource("databases", "CouchDB", data.dataSourceName);

fillDataSourceTextField(
postgreSqlText.labelHost,
Expand Down Expand Up @@ -145,8 +147,11 @@ describe("Data sources", () => {
);

cy.get(
`[data-cy="cypress-${data.lastName}-couchdb-button"]`
).verifyVisibleElement("have.text", `cypress-${data.lastName}-couchdb`);
deleteDatasource(`cypress-${data.lastName}-couchdb`);
`[data-cy="cypress-${data.dataSourceName}-couchdb-button"]`
).verifyVisibleElement(
"have.text",
`cypress-${data.dataSourceName}-couchdb`
);
deleteDatasource(`cypress-${data.dataSourceName}-couchdb`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ import {
} from "Support/utils/dataSource";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");

describe("Data source DynamoDB", () => {
beforeEach(() => {
cy.appUILogin();
data.dataSourceName = fake.lastName
.toLowerCase()
.replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on DynamoDB connection form", () => {
Expand All @@ -44,7 +46,11 @@ describe("Data source DynamoDB", () => {
postgreSqlText.allCloudStorage
);

selectAndAddDataSource("databases", dynamoDbText.dynamoDb, data.lastName);
selectAndAddDataSource(
"databases",
dynamoDbText.dynamoDb,
data.dataSourceName
);

cy.get('[data-cy="label-region"]').verifyVisibleElement(
"have.text",
Expand Down Expand Up @@ -90,11 +96,15 @@ describe("Data source DynamoDB", () => {
"have.text",
dynamoDbText.errorMissingRegion
);
deleteDatasource(`cypress-${data.lastName}-dynamodb`);
deleteDatasource(`cypress-${data.dataSourceName}-dynamodb`);
});

it("Should verify the functionality of DynamoDB connection form.", () => {
selectAndAddDataSource("databases", dynamoDbText.dynamoDb, data.lastName);
selectAndAddDataSource(
"databases",
dynamoDbText.dynamoDb,
data.dataSourceName
);

cy.get('[data-cy="label-region"]')
.parent()
Expand Down Expand Up @@ -147,9 +157,12 @@ describe("Data source DynamoDB", () => {
);

cy.get(
`[data-cy="cypress-${data.lastName}-dynamodb-button"]`
).verifyVisibleElement("have.text", `cypress-${data.lastName}-dynamodb`);
`[data-cy="cypress-${data.dataSourceName}-dynamodb-button"]`
).verifyVisibleElement(
"have.text",
`cypress-${data.dataSourceName}-dynamodb`
);

deleteDatasource(`cypress-${data.lastName}-dynamodb`);
deleteDatasource(`cypress-${data.dataSourceName}-dynamodb`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ import {
} from "Support/utils/dataSource";

const data = {};
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");

describe("Data source Elasticsearch", () => {
beforeEach(() => {
cy.appUILogin();
data.lastName = fake.lastName.toLowerCase().replaceAll("[^A-Za-z]", "");
});

it("Should verify elements on Elasticsearch connection form", () => {
Expand Down
Loading

0 comments on commit 97b022b

Please sign in to comment.