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:
parent
a5566af76d
commit
5e2a4b6afa
5
.github/workflows/ci-test-limited.yml
vendored
5
.github/workflows/ci-test-limited.yml
vendored
|
|
@ -115,7 +115,7 @@ jobs:
|
||||||
echo "::set-output name=run_result::$run_result_env"
|
echo "::set-output name=run_result::$run_result_env"
|
||||||
|
|
||||||
# In case this is second attempt try restoring failed tests
|
# In case this is second attempt try restoring failed tests
|
||||||
- if : steps.run_result.outputs.run_result == 'failedtest'
|
- if: steps.run_result.outputs.run_result == 'failedtest'
|
||||||
run: echo "failed_spec_artifact=failed-spec-ci-$((${{github.run_attempt}}-1))" >> $GITHUB_ENV
|
run: echo "failed_spec_artifact=failed-spec-ci-$((${{github.run_attempt}}-1))" >> $GITHUB_ENV
|
||||||
- name: Restore the previous failed combine result
|
- name: Restore the previous failed combine result
|
||||||
if: steps.run_result.outputs.run_result == 'failedtest'
|
if: steps.run_result.outputs.run_result == 'failedtest'
|
||||||
|
|
@ -228,6 +228,9 @@ jobs:
|
||||||
-e ENTERPRISE_USER_PASSWORD=ent_user_password \
|
-e ENTERPRISE_USER_PASSWORD=ent_user_password \
|
||||||
-e ENTERPRISE_ADMIN_NAME=ent-admin@appsmith.com \
|
-e ENTERPRISE_ADMIN_NAME=ent-admin@appsmith.com \
|
||||||
-e ENTERPRISE_ADMIN_PASSWORD=ent_admin_password \
|
-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
|
appsmith/cloud-services:release
|
||||||
cd cicontainerlocal
|
cd cicontainerlocal
|
||||||
docker run -d --name appsmith -p 80:80 -p 9001:9001 \
|
docker run -d --name appsmith -p 80:80 -p 9001:9001 \
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ describe("Undo/Redo functionality", function () {
|
||||||
});
|
});
|
||||||
cy.get(datasourceEditor.password).should("be.empty").wait(1000);
|
cy.get(datasourceEditor.password).should("be.empty").wait(1000);
|
||||||
cy.get(datasourceEditor.saveBtn).click({ force: true });
|
cy.get(datasourceEditor.saveBtn).click({ force: true });
|
||||||
dataSources.AssertDSActive(postgresDatasourceName);
|
dataSources.AssertDSInActiveList(postgresDatasourceName);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,9 +108,9 @@ export class DataManager {
|
||||||
|
|
||||||
postgres_host: "host.docker.internal",
|
postgres_host: "host.docker.internal",
|
||||||
postgres_port: 5432,
|
postgres_port: 5432,
|
||||||
postgres_databaseName: "fakeapitest",
|
postgres_databaseName: "stagingdb",
|
||||||
postgres_username: "docker",
|
postgres_username: "dockerstaging",
|
||||||
postgres_password: "docker",
|
postgres_password: "dockerstaging",
|
||||||
|
|
||||||
mysql_host: "host.docker.internal",
|
mysql_host: "host.docker.internal",
|
||||||
mysql_port: 3306,
|
mysql_port: 3306,
|
||||||
|
|
|
||||||
|
|
@ -945,7 +945,7 @@ export class DataSources {
|
||||||
? this._createQuery
|
? this._createQuery
|
||||||
: this._datasourceCardGeneratePageBtn;
|
: 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()
|
.scrollIntoView()
|
||||||
.should("be.visible")
|
.should("be.visible")
|
||||||
.then(($element) => {
|
.then(($element) => {
|
||||||
|
|
@ -962,7 +962,7 @@ export class DataSources {
|
||||||
this.assertHelper.AssertNetworkStatus("@getDatasourceStructure", 200); //Making sure table dropdown is populated
|
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.NavigateToSwitcher("Explorer", 0, true);
|
||||||
this.entityExplorer.ExpandCollapseEntity("Datasources", false);
|
this.entityExplorer.ExpandCollapseEntity("Datasources", false);
|
||||||
//this.entityExplorer.SelectEntityByName(datasourceName, "Datasources");
|
//this.entityExplorer.SelectEntityByName(datasourceName, "Datasources");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user