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

E2E test: Allow for web only test cases #6353

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Conversation

testlabauto
Copy link
Contributor

@testlabauto testlabauto commented Feb 13, 2025

--grep-invert for web only cases

QA Notes

All tests should pass

@:reticulate @:web

Copy link

github-actions bot commented Feb 13, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:reticulate @:web

readme  valid tags

@testlabauto testlabauto changed the title E2E test: Console metadata check E2E test: Allow for web only test cases Feb 18, 2025
@testlabauto testlabauto requested a review from midleman February 18, 2025 23:25
DISPLAY=:10 npx playwright test --project ${{ inputs.project }} --workers 2 --grep "${{ env.PW_TAGS }}" --repeat-each ${{ inputs.repeat_each }} --max-failures 10
if [ "${{ inputs.project }}" == "e2e-electron" ]; then
DISPLAY=:10 npx playwright test --project ${{ inputs.project }} --workers 2 --grep "${{ env.PW_TAGS }}" --grep-invert @:web-only --repeat-each ${{ inputs.repeat_each }} --max-failures 10
else
Copy link
Contributor Author

Choose a reason for hiding this comment

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

its for e2e-browser. on electron, we need the invert. on browser we don't

@@ -48,6 +48,7 @@ export enum TestTags {
TEST_EXPLORER = '@:test-explorer',
TOP_ACTION_BAR = '@:top-action-bar',
VARIABLES = '@:variables',
WEB_ONLY = '@:web-only',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Could you add this under the platform tags section/comment instead (since it's not a feature flag)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, done.

DISPLAY=:10 npx playwright test --project ${{ inputs.project }} --workers 2 --grep "${{ env.PW_TAGS }}" --repeat-each ${{ inputs.repeat_each }} --max-failures 10
if [ "${{ inputs.project }}" == "e2e-electron" ]; then
DISPLAY=:10 npx playwright test --project ${{ inputs.project }} --workers 2 --grep "${{ env.PW_TAGS }}" --grep-invert @:web-only --repeat-each ${{ inputs.repeat_each }} --max-failures 10
else
Copy link
Contributor Author

Choose a reason for hiding this comment

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

its for e2e-browser. on electron, we need the invert. on browser we don't

@testlabauto testlabauto merged commit 66df0ba into main Feb 19, 2025
6 of 8 checks passed
@testlabauto testlabauto deleted the cmead/console-metadata branch February 19, 2025 17:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants