From d40bb8ac54486ade0f455f0301defcb52e658192 Mon Sep 17 00:00:00 2001 From: Rijuta Singh <68547101+Rijuta-s@users.noreply.github.com> Date: Thu, 10 Nov 2022 19:18:37 +0530 Subject: [PATCH] Milestone 2.5: Adding E2E tests for blog homepage, author profile page and blog post page. (#16435) --- .github/workflows/e2e_miscellaneous_tests.yml | 5 + .../top-navigation-bar.component.html | 2 +- .../top-navigation-bar.component.ts | 6 +- .../blog-author-profile-page.component.html | 52 ++- .../blog-author-profile-page.component.ts | 3 +- .../blog-card/blog-card.component.html | 4 +- .../blog-home-page.component.html | 24 +- .../tag-filter/tag-filter.component.html | 8 +- .../blog-post-page.component.html | 14 +- core/tests/wdio.conf.js | 4 + core/tests/webdriverio_desktop/blog.js | 247 +++++++++++++++ .../webdriverio_utils/BlogDashboardPage.js | 3 +- core/tests/webdriverio_utils/BlogPages.js | 296 ++++++++++++++++++ core/tests/webdriverio_utils/general.js | 10 + 14 files changed, 636 insertions(+), 42 deletions(-) create mode 100644 core/tests/webdriverio_desktop/blog.js create mode 100644 core/tests/webdriverio_utils/BlogPages.js diff --git a/.github/workflows/e2e_miscellaneous_tests.yml b/.github/workflows/e2e_miscellaneous_tests.yml index dc07973c0f91..f3f64227fcf3 100644 --- a/.github/workflows/e2e_miscellaneous_tests.yml +++ b/.github/workflows/e2e_miscellaneous_tests.yml @@ -76,6 +76,11 @@ jobs: run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --skip-install --skip-build --suite="blogDashboard" --prod_env env: VIDEO_RECORDING_IS_ENABLED: 0 + - name: Run e2e Blog Pages Test + if: ${{ steps.check-risk.outputs.is-low-risk != 0 }} + run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --skip-install --skip-build --suite="blog" --prod_env + env: + VIDEO_RECORDING_IS_ENABLED: 0 - name: Run e2e Publication Test if: ${{ steps.check-risk.outputs.is-low-risk != 0 }} run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --suite="publication" --skip-install --skip-build --server_log_level="info" --prod_env diff --git a/core/templates/components/common-layout-directives/navigation-bars/top-navigation-bar.component.html b/core/templates/components/common-layout-directives/navigation-bars/top-navigation-bar.component.html index 5aada3891efa..1d7fe8c54ee7 100644 --- a/core/templates/components/common-layout-directives/navigation-bars/top-navigation-bar.component.html +++ b/core/templates/components/common-layout-directives/navigation-bars/top-navigation-bar.component.html @@ -233,7 +233,7 @@