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

Fix tests e2e playwright JS module #5376

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

rldhont
Copy link
Collaborator

@rldhont rldhont commented Feb 6, 2025

Introduced by #5362, import of Lizmap JS module could not be done.

So playwright has to be a module package, require has to be replaced by import and __dirname defined at each file level if needed.

@rldhont rldhont added tests unit tests and docker configuration for tests refactoring run end2end If the PR must run end2end tests or not backport release_3_9 labels Feb 6, 2025
@rldhont rldhont requested review from Gustry and nboisteault February 6, 2025 16:36
@github-actions github-actions bot added this to the 3.10.0 milestone Feb 6, 2025
@rldhont rldhont force-pushed the fix-playwright-js-module branch from 3da9181 to 79cc2c3 Compare February 6, 2025 17:13
@rldhont rldhont added run end2end If the PR must run end2end tests or not and removed run end2end If the PR must run end2end tests or not labels Feb 6, 2025
@rldhont rldhont force-pushed the fix-playwright-js-module branch 4 times, most recently from 9a2de80 to 154c067 Compare February 6, 2025 20:30
Copy link
Member

@Gustry Gustry left a comment

Choose a reason for hiding this comment

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

LGTM, thanks !

Copy link
Member

@nboisteault nboisteault left a comment

Choose a reason for hiding this comment

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

LGTM

Introduced by 3liz#5362, import of Lizmap JS module could not be done.
So playwright has to be a `module` package, `require` has to be replaced by `import` and `__dirname` defined at each file level if needed.
@rldhont rldhont force-pushed the fix-playwright-js-module branch from 154c067 to 7e1277f Compare February 7, 2025 12:28
@rldhont rldhont merged commit e3f7f12 into 3liz:master Feb 7, 2025
17 of 19 checks passed
@rldhont rldhont deleted the fix-playwright-js-module branch February 7, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_3_9 refactoring run end2end If the PR must run end2end tests or not tests unit tests and docker configuration for tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants