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

front: don't use front/tests/ to write PDF files #10718

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Conversation

emersion
Copy link
Member

@emersion emersion commented Feb 7, 2025

Closes #10492
front/tests/ is not a directory meant to be used for test results. It should only contain source files.

Playwright sets up a specific directory for test outputs, so we can just use that instead. As a bonus, the PDF is now included in CI artifacts and can be inspected manually if needed.

Fixes permission errors when running tests in a container for me.

@emersion emersion requested a review from Maymanaf February 7, 2025 10:42
@emersion emersion requested a review from a team as a code owner February 7, 2025 10:42
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 7, 2025
@emersion emersion force-pushed the emr/test-pdf-output branch from c7aa080 to eee64d9 Compare February 7, 2025 10:57
Copy link
Contributor

@Maymanaf Maymanaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job ! LGTM
just left a signle comment you can resolve it later on

front/tests/ is not a directory meant to be used for test results.
It should only contain source files.

Playwright sets up a specific directory for test outputs, so we
can just use that instead. As a bonus, the PDF is now included in
CI artifacts and can be inspected manually if needed.

Fixes permission errors when running tests in a container for me.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion force-pushed the emr/test-pdf-output branch from eee64d9 to 7b9373d Compare February 7, 2025 15:52
@emersion emersion enabled auto-merge February 7, 2025 15:52
@emersion emersion added this pull request to the merge queue Feb 7, 2025
Merged via the queue into dev with commit 7b9373d Feb 7, 2025
53 checks passed
@emersion emersion deleted the emr/test-pdf-output branch February 7, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

front: adapt playwright docker script to new stdcm tests
2 participants