-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: add script to update default E2E fixture from generated report #26861
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
bbd7989
feat: add script to update default E2E fixture from generated report
cmd-ob 612f6cc
feat: add force run flag to E2E selection and update workflow conditions
cmd-ob 10e00d4
feat: enhance E2E fixture update workflow with PR number input and im…
cmd-ob f48691f
feat: rename and enhance command acknowledgment in E2E fixture update…
cmd-ob 6aa7a44
feat: enhance E2E fixture update workflow with improved PR validation…
cmd-ob 5b9d2f9
Merge branch 'main' into fixture-update
cmd-ob e1822d4
Merge branch 'main' of github.com:MetaMask/metamask-mobile into fixtu…
cmd-ob 6e6d257
feat(workflow): update permissions for fixture update job
cmd-ob 3e068a2
chore: update E2E default fixture
metamaskbot 230aa5b
Merge branch 'main' into fixture-update
cmd-ob 2444573
Merge branch 'main' into fixture-update
cmd-ob decbdeb
feat: update E2E test conditions to exclude forked repositories
cmd-ob 1ec775f
Merge branch 'fixture-update' of github.com:MetaMask/metamask-mobile …
cmd-ob c7a158e
revert fixture update
cmd-ob ef71f92
Merge branch 'main' into fixture-update
cmd-ob 5b78925
Merge branch 'main' into fixture-update
cmd-ob bfcd736
feat: update ignored keys in mobile fixture to include additional net…
cmd-ob dd1a479
feat: add validation for unexpected keys in fixture comparison and im…
cmd-ob 99d58ef
Merge branch 'main' into fixture-update
cmd-ob 5e519b7
chore: add read permission for contents in E2E fixture update workflow
cmd-ob 838d145
Merge branch 'main' into fixture-update
cmd-ob ec77794
Merge branch 'main' into fixture-update
cmd-ob e57b228
Merge branch 'main' into fixture-update
cmd-ob e66ccb9
fix(workflow): prevent caching on cancelled jobs in E2E fixture update
cmd-ob afc3f5f
Merge branch 'main' of github.com:MetaMask/metamask-mobile into fixtu…
cmd-ob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| # Updates the default E2E fixture from the generated report. | ||
| # Run this after executing the fixture-validation.spec.ts test locally. | ||
|
|
||
| set -e | ||
|
|
||
| REPORT_FILE="tests/reports/updated-default-fixture.json" | ||
| TARGET_FILE="tests/framework/fixtures/json/default-fixture.json" | ||
|
|
||
| if [ ! -f "$REPORT_FILE" ]; then | ||
| echo "Error: $REPORT_FILE not found." | ||
| echo "Run the fixture validation test first:" | ||
| echo " yarn detox test tests/regression/fixtures/fixture-validation.spec.ts -c <config>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| cp "$REPORT_FILE" "$TARGET_FILE" | ||
| echo "Updated $TARGET_FILE from $REPORT_FILE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.