-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Refactor EditAccountNameView for E2E tests (#11765)
This PR refactors EditAccountNameView.js to adhere to E2E testing best practices by removing static methods converting them to instance methods and exporting an initialized class instance. The change-account-name.spec.js file is updated accordingly. Changes include refactoring EditAccountNameView.js updating change-account-name.spec.js and improving code readability. These modifications enhance the maintainability and consistency of the E2E tests for the account name editing functionality. --------- Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Curtis <Curtis.David7@gmail.com>
- Loading branch information
1 parent
247686d
commit 1a2d5a7
Showing
4 changed files
with
69 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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,32 @@ | ||
name: E2E Merge Queue Check | ||
|
||
on: | ||
push: | ||
branches: main | ||
pull_request: | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
jobs: | ||
apply-smoke-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Apply "Run Smoke E2E" label | ||
uses: octokit/request-action@v2.x | ||
with: | ||
route: POST /repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels | ||
labels: 'Run Smoke E2E' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
run-e2e-check: | ||
needs: apply-smoke-label | ||
uses: ./.github/workflows/run-bitrise-e2e-check.yml # Reuse the bitrise check workflow | ||
with: | ||
pr_number: ${{ github.event.number || github.event.pull_request.number }} | ||
e2e_label: 'Run Smoke E2E' | ||
e2e_pipeline: 'pr_smoke_e2e_pipeline' | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BITRISE_BUILD_TRIGGER_TOKEN: ${{ secrets.BITRISE_BUILD_TRIGGER_TOKEN }} | ||
BITRISE_APP_ID: ${{ secrets.BITRISE_APP_ID }} |
This file contains 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 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 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