Skip to content

Commit

Permalink
CI: update testcafe tests for extracted e2e project in devextreme 24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bulychev committed Jun 17, 2024
1 parent 85c4f81 commit 2585293
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/actions/html-editor/steps/testcafe-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ inputs:
description: DevExtreme package path
required: true
default: devextreme-repo
e2e-package-directory:
description: DevExtreme e2e package path
default: devextreme-repo
test-artifacts-directory:
description: DevExtreme e2e package path
default: devextreme-repo/testing/testcafe/artifacts
component-directory:
description: The component directory with Testcafe tests
required: true
Expand Down Expand Up @@ -51,7 +57,7 @@ runs:

- name: Run TestCafe tests
shell: bash
working-directory: ${{ inputs.devextreme-package-directory }}
working-directory: ${{ inputs.e2e-package-directory }}
run: |
all_args="--concurrency 2 --browsers=chrome:devextreme-shr2 --componentFolder ${{ inputs.component-directory }} --quarantineMode ${{ env.TEST_SUITE.quarantineMode}}"
echo "$all_args"
Expand All @@ -62,13 +68,13 @@ runs:
uses: actions/upload-artifact@v3
with:
name: compared-screenshots
path: ${{ inputs.devextreme-package-directory }}/testing/testcafe/artifacts/compared-screenshots/**/*
path: ${{ inputs.test-artifacts-directory }}/compared-screenshots/**/*
if-no-files-found: ignore

- name: Copy failed test artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: failed-tests
path: ${{ inputs.devextreme-package-directory }}/testing/testcafe/artifacts/failedtests/**/*
path: ${{ inputs.test-artifacts-directory }}/failedtests/**/*
if-no-files-found: ignore
6 changes: 5 additions & 1 deletion .github/workflows/html-editor-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:
with:
branch: ${{ matrix.branch }}
devextreme-package-directory: ${{ matrix.branch == '23_2' && 'devextreme-repo/packages/devextreme' || 'devextreme-repo' }}
e2e-package-directory: ${{ matrix.branch == '23_2' && 'devextreme-repo/packages/devextreme' || 'devextreme-repo' }}
test-artifacts-directory: ${{ matrix.branch == '23_2' && 'devextreme-repo/packages/devextreme/testing/testcafe/artifacts' || 'devextreme-repo/testing/testcafe/artifacts' }}
component-directory: ${{ matrix.test-suite.componentFolder }}
quarantine-mode: ${{ matrix.test-suite.quarantineMode }}

Expand All @@ -107,7 +109,9 @@ jobs:
uses: ./quill-repo/.github/actions/html-editor/steps/testcafe-tests
with:
branch: ${{ matrix.branch }}
devextreme-package-directory: devextreme-repo/e2e/testcafe-devextreme
devextreme-package-directory: devextreme-repo/packages/devextreme
e2e-package-directory: devextreme-repo/e2e/testcafe-devextreme
test-artifacts-directory: devextreme-repo/e2e/testcafe-devextreme/artifacts
component-directory: ${{ matrix.test-suite.componentFolder }}
quarantine-mode: ${{ matrix.test-suite.quarantineMode }}
script-name: test

0 comments on commit 2585293

Please sign in to comment.