Skip to content

Commit 82eb0e8

Browse files
authored
[Vis Builder] Enable VisBuilder cypress tests (#2728)
* Enable VisBuilder cypress tests Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds changelog and fix env Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Run all tests Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
1 parent a3cbd30 commit 82eb0e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cypress_workflow.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ env:
1111
FTR_PATH: 'ftr'
1212
START_CMD: 'node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch'
1313
OPENSEARCH_SNAPSHOT_CMD: 'node ../scripts/opensearch snapshot'
14-
SPEC: 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/*.js,'
14+
SPEC: 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js,'
15+
CYPRESS_ENV: 'env CYPRESS_VISBUILDER_ENABLED=true '
1516

1617
jobs:
1718
cypress-tests:
@@ -75,7 +76,7 @@ jobs:
7576
working-directory: ${{ env.FTR_PATH }}
7677
start: ${{ env.OPENSEARCH_SNAPSHOT_CMD }}, ${{ env.START_CMD }}
7778
wait-on: 'http://localhost:9200, http://localhost:5601'
78-
command: yarn cypress:run-without-security --browser chromium --spec ${{ env.SPEC }}
79+
command: ${{ env.CYPRESS_ENV }} yarn cypress:run-without-security --browser chromium --spec ${{ env.SPEC }}
7980

8081
# Screenshots are only captured on failure, will change this once we do visual regression tests
8182
- uses: actions/upload-artifact@v3

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
3232
- [Vis Builder] Rename wizard to visBuilder in i18n id and formatted message id ([#2635](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2635))
3333
- [Vis Builder] Rename wizard to visBuilder in class name, type name and function name ([#2639](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2639))
3434
- [Vis Builder] Rename wizard on save modal and visualization table ([#2645](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2645))
35+
- [Vis Builder] Adds functional tests to CI ([#2728](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2728))
3536
- [Vis Builder] Enable VisBuilder by default ([#2725](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2725))
3637
- Change save object type, wizard id and name to visBuilder #2673 ([#2673](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2673))
3738
- [Multi DataSource] Update MD data source documentation link ([#2693](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2693))

0 commit comments

Comments
 (0)