diff --git a/.github/actions/run-cypress-tests/action.yml b/.github/actions/run-cypress-tests/action.yml index 2f8331e66..aa49c2baa 100644 --- a/.github/actions/run-cypress-tests/action.yml +++ b/.github/actions/run-cypress-tests/action.yml @@ -63,6 +63,12 @@ runs: fi shell: bash + - name: Compile OpenSearch Dashboards + run: | + cd OpenSearch-Dashboards + node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers=10 --verbose + shell: bash + - name: Run OpenSearch Dashboards with provided configuration if: ${{ runner.os == 'Linux' }} run: | @@ -80,13 +86,13 @@ runs: run: | cd ./OpenSearch-Dashboards echo "Start checking OpenSearch Dashboards." - for i in {1..60}; do - if grep -q "bundles compiled successfully after" "dashboard.log"; then - echo "OpenSearch Dashboards compiled successfully." + for i in {1..6}; do + if grep -q "http server running" "dashboard.log"; then + echo "OpenSearch Dashboards started successfully." break fi - if [ $i -eq 60 ]; then - echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling." + if [ $i -eq 6 ]; then + echo "Timeout for 60 seconds reached. OpenSearch Dashboards did not start." exit 1 fi sleep 10 diff --git a/public/apps/configuration/panels/get-started.tsx b/public/apps/configuration/panels/get-started.tsx index 47a7b3a30..51cfd3a14 100644 --- a/public/apps/configuration/panels/get-started.tsx +++ b/public/apps/configuration/panels/get-started.tsx @@ -61,7 +61,7 @@ const addBackendStep = { diff --git a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap index 001b3b6c9..180d9330f 100644 --- a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap +++ b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap @@ -431,7 +431,7 @@ exports[`Get started (landing page) renders when backend configuration is enable