Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] VizroAI UI tests #882

Merged
merged 57 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ea31d69
component library tests
l0uden Nov 13, 2024
c656536
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 13, 2024
40a293e
failed artifacts and slack notifications
l0uden Nov 14, 2024
3283d74
branch in notification
l0uden Nov 14, 2024
3cff909
delete screenshot
l0uden Nov 14, 2024
8fe3812
add screenshot
l0uden Nov 14, 2024
ab843c8
fix screenshot url
l0uden Nov 14, 2024
f9de666
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/comp…
l0uden Nov 14, 2024
d74645f
changelog
l0uden Nov 14, 2024
2af4dce
vizroAI UI tests
l0uden Nov 18, 2024
aeb063f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 18, 2024
8ad3e4e
added PR branch for tests
l0uden Nov 18, 2024
9ff0bbb
fix for runner name
l0uden Nov 18, 2024
4d826f0
requirements for tests env
l0uden Nov 18, 2024
73ba50a
run app under hatch
l0uden Nov 18, 2024
1bc78c8
return headless mode
l0uden Nov 18, 2024
f5a67bf
test failure
l0uden Nov 18, 2024
fbbb2a0
test failure
l0uden Nov 18, 2024
5b6c718
test success
l0uden Nov 18, 2024
bb0b680
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Dec 12, 2024
ea7ef47
fix merging main
l0uden Dec 12, 2024
2ffdbe6
tests refactor
l0uden Dec 13, 2024
41b6a97
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 13, 2024
aaa805d
delete data csv
l0uden Dec 13, 2024
5f0f3ce
Merge branch 'qa/vizro_ai_ui_tests' of https://github.com/mckinsey/vi…
l0uden Dec 13, 2024
255b847
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Dec 13, 2024
efc1acc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 13, 2024
d68d17d
test failed
l0uden Dec 13, 2024
4905fe7
Merge branch 'qa/vizro_ai_ui_tests' of https://github.com/mckinsey/vi…
l0uden Dec 13, 2024
f85aa78
test success
l0uden Dec 13, 2024
ad807f9
small refactoring
l0uden Dec 24, 2024
f2792be
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Dec 24, 2024
84be043
changelog
l0uden Dec 24, 2024
ebc2465
temp uv fix
l0uden Dec 24, 2024
530d3fe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 24, 2024
01dcdc6
temp uv fix
l0uden Dec 24, 2024
7c78959
Merge branch 'qa/vizro_ai_ui_tests' of https://github.com/mckinsey/vi…
l0uden Dec 24, 2024
4f93588
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 24, 2024
986872b
get conftest back to integration
l0uden Dec 24, 2024
725b7b2
Merge branch 'qa/vizro_ai_ui_tests' of https://github.com/mckinsey/vi…
l0uden Dec 24, 2024
c2f13f4
Propose rename for future
antonymilne Jan 16, 2025
dde3430
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Jan 17, 2025
91e88ab
refactor tests structure and naming
l0uden Jan 17, 2025
30acedc
changes wait port
l0uden Jan 17, 2025
d6282c1
make dashboard_ui run with dash_duo
l0uden Jan 21, 2025
d313f0e
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Jan 21, 2025
4e8d43e
move conftest with reset managers to vizro_ai_ui only
l0uden Jan 21, 2025
6bc8b30
fix test-vizro-ai-ui.yml
l0uden Jan 21, 2025
b28f5f9
linting
l0uden Jan 21, 2025
56e6812
webhook secret
l0uden Jan 21, 2025
e1c99b0
delete unused code from conftest.py
l0uden Jan 22, 2025
eea1c51
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Jan 23, 2025
868ad70
slack notification fix
l0uden Jan 23, 2025
04aee84
move test steps to dash internal test methods
l0uden Jan 24, 2025
5e97ce1
delete score word from dashboard tests
l0uden Jan 24, 2025
b9769ee
additional verification
l0uden Jan 27, 2025
45df962
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/vizr…
l0uden Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
failed artifacts and slack notifications
l0uden committed Nov 14, 2024
commit 40a293ecf2ab15db237a5ead7f1370a44bd4ab3b
27 changes: 27 additions & 0 deletions .github/workflows/test-component-library-vizro-core.yml
Original file line number Diff line number Diff line change
@@ -37,3 +37,30 @@ jobs:

- name: Run integration tests
run: hatch run tests:test-component-library

- name: Copy failed screenshots
if: failure()
run: |
mkdir /home/runner/work/vizro/vizro/vizro-core/failed_screenshots/
cp *.png failed_screenshots

- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: Failed screenshots
path: |
/home/runner/work/vizro/vizro/vizro-core/failed_screenshots/*.png

- name: Send custom JSON data to Slack
id: slack
uses: slackapi/slack-github-action@v1.26.0
if: failure()
with:
payload: |
{
"text": "Vizro component tests build result: ${{ job.status }}\nBranch: ${{ env.head_ref }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
4 changes: 0 additions & 4 deletions .github/workflows/vizro-qa-tests-trigger.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@ jobs:
include:
- label: integration tests
- label: vizro-ai ui tests
- label: component library tests
steps:
- name: Passed fork step
run: echo "Success!"
@@ -36,7 +35,6 @@ jobs:
include:
- label: integration tests
- label: vizro-ai ui tests
- label: component library tests
steps:
- uses: actions/checkout@v4
- name: Tests trigger
@@ -48,8 +46,6 @@ jobs:
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_INTEGRATION_TESTS_WORKFLOW }}
elif [ "${{ matrix.label }}" == "vizro-ai ui tests" ]; then
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_VIZRO_AI_UI_TESTS_WORKFLOW }}
elif [ "${{ matrix.label }}" == "component library tests" ]; then
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_VIZRO_COMPONENT_LIBRARY_TESTS_WORKFLOW }}
fi
export INPUT_GITHUB_TOKEN=${{ secrets.VIZRO_SVC_PAT }}
export INPUT_REF=main # because we should send existent branch to dispatch workflow