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

test-failure-policy: Ignore window. prefix for ph_* test helper functions #6688

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

martinpitt
Copy link
Member

We will soon move cockpit's test-functions.js helpers to the window object, so that they become compatible with Webdriver's script preloading API. This affects all naughty patterns which include any of the ph_*() function calls (i.e. most patterns). Until this all lands and settles down, avoid mass-changing all the patterns and just remove the window. prefix for the comparison.

Note that the naughties also apply to old project branches.


I tested locally that this works. Once this lands, I'll send a cockpit PR to actually do that move -- it's intrusive but simple, and I want it out of the way. Then cockpit-project/cockpit#20832 should become much greener.

…ctions

We will soon move cockpit's test-functions.js helpers to the `window`
object, so that they become compatible with Webdriver's script
preloading API. This affects all naughty patterns which include any of
the `ph_*()` function calls (i.e. most patterns). Until this all lands
and settles down, avoid mass-changing all the patterns and just remove
the `window.` prefix for the comparison.

Note that the naughties also apply to old project branches.
@martinpitt martinpitt requested review from jelly and mvollmer August 2, 2024 07:09
@martinpitt
Copy link
Member Author

This run shows that naughties with a ph_ are still caught correctly.

@martinpitt martinpitt removed the request for review from mvollmer August 2, 2024 07:19
@martinpitt martinpitt merged commit b8aae7b into main Aug 2, 2024
10 of 11 checks passed
@martinpitt martinpitt deleted the naughty-ph-window branch August 2, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants