Skip to content

Test(e2e): Added UI automated test for EAP Registration#2156

Draft
Shhhhhubh wants to merge 10 commits intoproject/early-action-protocolsfrom
feat/e2e-eap
Draft

Test(e2e): Added UI automated test for EAP Registration#2156
Shhhhhubh wants to merge 10 commits intoproject/early-action-protocolsfrom
feat/e2e-eap

Conversation

@Shhhhhubh
Copy link
Copy Markdown

Summary

Added automated test for EAP registration

Changes

  • Added a test playwright script
  • Added a json5 test data file

This PR Ensures:

  • No typos or grammatical errors
  • No conflict markers left in the code
  • No unwanted comments, temporary files, or auto-generated files
  • No inclusion of secret keys or sensitive data
  • No console.log statements meant for debugging
  • All CI checks have passed

Additional Notes

Optional: Add any other relevant context, screenshots, or details here.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Dec 23, 2025

⚠️ No Changeset found

Latest commit: ab5fc24

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +9 to +27
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

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 4 months ago

In general, the fix is to explicitly declare a permissions block at the workflow or job level, limiting GITHUB_TOKEN to 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 permissions block at the root level of .github/workflows/playwright.yml, just under name: (or above jobs:). This will apply to all jobs in the workflow (currently only test) and set contents: read. No other scopes are necessary for the listed actions. Concretely, edit .github/workflows/playwright.yml to insert:

permissions:
  contents: read

between the existing name: Playwright Tests and the on: block, leaving the rest of the workflow unchanged. No additional imports, methods, or definitions are required because this is purely a configuration change.

Suggested changeset 1
.github/workflows/playwright.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -1,4 +1,6 @@
 name: Playwright Tests
+permissions:
+  contents: read
 on:
   push:
     branches: [ main, master ]
EOF
@@ -1,4 +1,6 @@
name: Playwright Tests
permissions:
contents: read
on:
push:
branches: [ main, master ]
Copilot is powered by AI and may make mistakes. Always verify output.
@frozenhelium frozenhelium force-pushed the project/early-action-protocols branch from 4c88096 to 84b47e5 Compare December 24, 2025 04:56
@shreeyash07 shreeyash07 force-pushed the project/early-action-protocols branch from ee8f818 to 2aa1842 Compare January 23, 2026 06:23
@frozenhelium frozenhelium force-pushed the project/early-action-protocols branch 3 times, most recently from 02a3981 to a084fed Compare January 23, 2026 10:03
barshathakuri and others added 7 commits February 10, 2026 10:08
- Add EAP Application tab in account page
- Add EAP Registration Form
- Add simplified EAP form
- Add export for simplified EAP
- Add full EAP form
- Add full EAP export
- Add full EAP summary export
- Add Admin2 input component
- Make minor enhancements in various UI components
    - Add form variant in Heading
    - Add option to show border in container
    - Restructure radio icon size
    - Improve info popup icon size
    - Update styling of TabLayout
        - Update 'step' variant TabLayout to match the designs
        - Add 'form' variant to Container
        - Fix styling of info popup
        - Update styling of InputLabel
- add missing translations strings
- update in value of printable data display when type is text
- add clearable in fileinput
@frozenhelium frozenhelium force-pushed the project/early-action-protocols branch from 33d5f8b to dd2551b Compare February 10, 2026 04:23
@shreeyash07 shreeyash07 force-pushed the project/early-action-protocols branch 3 times, most recently from 8ec4172 to 6855ade Compare April 7, 2026 09:26
@shreeyash07 shreeyash07 force-pushed the project/early-action-protocols branch 2 times, most recently from c7ac151 to 82d6d8b Compare April 17, 2026 05:03
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.

4 participants