-
Notifications
You must be signed in to change notification settings - Fork 7
Test(e2e): Added UI automated test for EAP Registration #2156
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
Draft
Shhhhhubh
wants to merge
21
commits into
project/early-action-protocols
Choose a base branch
from
feat/e2e-eap
base: project/early-action-protocols
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
783166d
global(add-global-page): Add a global page
barshathakuri 73051d5
eap(add-eap-link): Add EAP Tab in account page
barshathakuri c6edf32
dref-process(tabs): Add tabs in dref process link
barshathakuri f102fc4
eap-table(table): Add eap development table
barshathakuri 6a0745a
eap(eap-registration-form): Add EAP Registration Form
barshathakuri ac6555f
eap-table(table): Add eap development table
barshathakuri 9223238
eap(lisitng): Add eap listing page
barshathakuri 6767eea
fix(eap): update eap section according to new UI
shreeyash07 4395c69
feat(eap): add simplified EAP form
barshathakuri e408b92
feat(eap): add export for simplified EAP
frozenhelium 7e2c5d4
feat(eap): update simplified eap form schema
barshathakuri 38322d6
feat(admin-2-input): add basic component
frozenhelium 05b1b84
feat(eap): clean-up simplied form schema
frozenhelium c2ecdb8
feat(eap): add status transition
frozenhelium 6f16bd3
feat(eap): add eap export modal
frozenhelium 012942a
feat(eap): add expansion columns in eap table
frozenhelium 30397c6
feat(eap): add indicators in simplified form
frozenhelium 56e1dca
feat(eap): add PrintableDescription component
frozenhelium 4c88096
feat(eap): add option to export with changes
frozenhelium 4362c3e
test(e2e): Added UI automated test for EAP Registration
Shhhhhubh 0e835f3
eap(update-ci): Update CI for playwright
barshathakuri 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Playwright Tests | ||
| on: | ||
| push: | ||
| branches: [ main, master ] | ||
| pull_request: | ||
| branches: [ main, master ] | ||
| jobs: | ||
| test: | ||
| timeout-minutes: 60 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: lts/* | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Install Playwright Browsers | ||
| run: npx playwright install --with-deps | ||
| - name: Run Playwright tests | ||
| run: npx playwright test | ||
| - uses: actions/upload-artifact@v4 | ||
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: playwright-report | ||
| path: playwright-report/ | ||
| retention-days: 30 | ||
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
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.
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.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 5 days ago
In general, the fix is to explicitly declare a
permissionsblock at the workflow or job level, limitingGITHUB_TOKENto only what this workflow needs. Since this job just checks out code, installs dependencies, runs Playwright tests, and uploads artifacts, it only needs read access to repository contents; no write permissions or access to other scopes (issues, pull-requests, etc.) are required.The best minimal fix without changing existing functionality is to add a
permissionsblock at the root level of.github/workflows/playwright.yml, just undername:(or abovejobs:). This will apply to all jobs in the workflow (currently onlytest) and setcontents: read. No other scopes are necessary for the listed actions. Concretely, edit.github/workflows/playwright.ymlto insert:between the existing
name: Playwright Testsand theon:block, leaving the rest of the workflow unchanged. No additional imports, methods, or definitions are required because this is purely a configuration change.