test: Cypress | Update ci-test-limit to use Mock Flagsmith (#27120)

## Description
- This PR updates the name of datasource method from 'AssertDSActive' to
'AssertDSInActiveList'
- Updated ci-test-limit.yml to include the flagsmith params
- Updates Postgress staging db name/creds
This commit is contained in:
Aishwarya-U-R 2023-09-09 00:37:23 +05:30 committed by GitHub
parent a5566af76d
commit 5e2a4b6afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 8 deletions

View File

@ -228,6 +228,9 @@ jobs:
-e ENTERPRISE_USER_PASSWORD=ent_user_password \
-e ENTERPRISE_ADMIN_NAME=ent-admin@appsmith.com \
-e ENTERPRISE_ADMIN_PASSWORD=ent_admin_password \
-e FLAGSMITH_URL=http://host.docker.internal:5001/flagsmith \
-e FLAGSMITH_SERVER_KEY=dummykey \
-e FLAGSMITH_SERVER_KEY_BUSINESS_FEATURES=dummykeybusinessfeatures \
appsmith/cloud-services:release
cd cicontainerlocal
docker run -d --name appsmith -p 80:80 -p 9001:9001 \

View File

@ -44,7 +44,7 @@ describe("Undo/Redo functionality", function () {
});
cy.get(datasourceEditor.password).should("be.empty").wait(1000);
cy.get(datasourceEditor.saveBtn).click({ force: true });
dataSources.AssertDSActive(postgresDatasourceName);
dataSources.AssertDSInActiveList(postgresDatasourceName);
});
});

View File

@ -108,9 +108,9 @@ export class DataManager {
postgres_host: "host.docker.internal",
postgres_port: 5432,
postgres_databaseName: "fakeapitest",
postgres_username: "docker",
postgres_password: "docker",
postgres_databaseName: "stagingdb",
postgres_username: "dockerstaging",
postgres_password: "dockerstaging",
mysql_host: "host.docker.internal",
mysql_port: 3306,

View File

@ -945,7 +945,7 @@ export class DataSources {
? this._createQuery
: this._datasourceCardGeneratePageBtn;
this.AssertDSActive(new RegExp("^" + datasourceName + "$")) //This regex is to exact match the datasource name
this.AssertDSInActiveList(new RegExp("^" + datasourceName + "$")) //This regex is to exact match the datasource name
.scrollIntoView()
.should("be.visible")
.then(($element) => {
@ -962,7 +962,7 @@ export class DataSources {
this.assertHelper.AssertNetworkStatus("@getDatasourceStructure", 200); //Making sure table dropdown is populated
}
public AssertDSActive(dsName: string | RegExp) {
public AssertDSInActiveList(dsName: string | RegExp) {
this.entityExplorer.NavigateToSwitcher("Explorer", 0, true);
this.entityExplorer.ExpandCollapseEntity("Datasources", false);
//this.entityExplorer.SelectEntityByName(datasourceName, "Datasources");