Skip to content

docs(onboarding) - add e2e happy path#1010

Open
jordividaller wants to merge 27 commits into
mainfrom
test/pbyr-3802-e2e-oboarding-scenario
Open

docs(onboarding) - add e2e happy path#1010
jordividaller wants to merge 27 commits into
mainfrom
test/pbyr-3802-e2e-oboarding-scenario

Conversation

@jordividaller
Copy link
Copy Markdown
Collaborator

@jordividaller jordividaller commented May 13, 2026

[https://linear.app/remote/issue/PBYR-3802/extend-e2e-tests-to-cover-eor-onboarding-scenario]

I've decided to split helpers to avoid having a file that's too large in the future.

All my form-filling functions can accept different parameters to allow them to be used for futures tests (tlike testing errors scenarios for example).


Note

Low Risk
Low risk: changes are confined to example/ E2E test code and adds non-functional data-* attributes for selectors; no library runtime or API behavior is modified.

Overview
Adds a new Playwright E2E spec that runs a full happy-path through the onboarding-basic demo (intro + country selection + basic info + contract details + benefits + review) using reusable form-filling helpers.

Refactors E2E helpers by splitting Vercel bypass routing and generic form input utilities into helpers/general.ts, moving estimation helpers to helpers/estimation.ts, and updating existing cost-calculator specs to import from the new locations. The example onboarding page is updated with data-testid/data-field attributes to make selectors stable for the new tests, and a new CLAUDE.md is added with repository contribution guidance.

Reviewed by Cursor Bugbot for commit ce8244e. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 13, 2026

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 90.11% 90.11% 0%
Statements 89.78% 89.78% 0%
Functions 87.76% 87.76% 0%
Branches 80.28% 80.28% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 3708 / 4115
  • Coverage: 90.11%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 3768 / 4197
  • Coverage: 89.78%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1004 / 1144
  • Coverage: 87.76%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 2320 / 2890
  • Coverage: 80.28%
  • Change: 0% (0 branches)

✅ Coverage check passed

Comment thread example/e2e/onboard-basic-employee.spec.ts Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 211.91 kB 211.91 kB 0 B (0%) 🟢
Total (raw) 575.05 kB 575.05 kB 0 B (0%) 🟢
CSS (gzip) 20.86 kB 20.86 kB 0 B (0%) 🟢
CSS (raw) 108.83 kB 108.83 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 211.91 kB / 250 kB (84.8%)
  • ✅ Total raw: 575.05 kB / 600 kB (95.8%)
  • ✅ CSS gzipped: 20.86 kB / 25 kB (83.4%)

Largest Files (Top 5)

  1. chunk-UGPYPGVV.js - 14 kB (0 B (0%))
  2. styles.css - 10.43 kB (0 B (0%))
  3. index.css - 10.43 kB (0 B (0%))
  4. index.js - 6.1 kB (0 B (0%))
  5. chunk-ER46UFIU.js - 5.89 kB (0 B (0%))
View All Files (312 total)
File Size (gzip) Change
chunk-UGPYPGVV.js 14 kB 0 B (0%)
styles.css 10.43 kB 0 B (0%)
index.css 10.43 kB 0 B (0%)
index.js 6.1 kB 0 B (0%)
chunk-ER46UFIU.js 5.89 kB 0 B (0%)
chunk-JSSCFAYO.js 5.81 kB 0 B (0%)
chunk-EFL7QFFN.js 5.29 kB 0 B (0%)
chunk-B5ZUJ3BW.js 4.64 kB 0 B (0%)
chunk-3CDKTHT5.js 4.46 kB 0 B (0%)
chunk-C5PA6MLW.js 4.06 kB 0 B (0%)

✅ Bundle size check passed

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-5hmydiq3s-remotecom.vercel.app
Latest Commit:ce8244e

Deployed with vercel-action

Comment thread example/e2e/helpers/onboarding.ts Outdated
@gabrielseco
Copy link
Copy Markdown
Collaborator

bugbot run

@cursor
Copy link
Copy Markdown

cursor Bot commented May 18, 2026

Bugbot couldn't run

Bugbot is not enabled for your user on this team.

Ask your team administrator to increase your team's hard limit for Bugbot seats or add you to the allowlist in the Cursor dashboard.

@remotecom
Copy link
Copy Markdown
Contributor

bugbot run

Comment thread example/e2e/helpers/onboarding.ts Outdated
Comment thread CHANGELOG.md
Comment thread package-lock.json Outdated
Comment thread example/e2e/helpers/estimation.ts
Comment thread example/e2e/helpers/onboarding.ts Outdated
Comment thread example/e2e/helpers/onboarding.ts Outdated
Comment thread example/e2e/helpers/onboarding.ts Outdated
Comment thread example/e2e/helpers/onboarding.ts Outdated
Comment thread example/e2e/helpers/onboarding.ts Outdated
Comment thread CHANGELOG.md
Comment thread example/e2e/helpers/general.ts
Comment thread example/e2e/helpers/general.ts Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b898261. Configure here.

Comment thread example/e2e/onboard-basic-employee.spec.ts Outdated
@jordividaller jordividaller changed the title Test/pbyr 3802 e2e oboarding scenario docs(onboarding) - add e2e happy path May 19, 2026
Comment thread example/e2e/helpers/general.ts Outdated
dataField?: string,
) {
if (cssId) {
if (value) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We can simplify this, check #1041

Comment thread example/e2e/helpers/onboarding.ts Outdated
options: Partial<fillOnboardingIntroductionFormOptions>,
) {
await fillForm(page, [
{ type: 'textField', value: options.company_id, cssId: '#companyId' },
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we can simplify the API to only query by the same attribute can you check this PR #1041

To see the changes I propose

I believe we'll simplify the API and don't mix ids like '#companyId' and dataField

Comment thread CHANGELOG.md
Comment thread package-lock.json Outdated
"arm64"
],
"dev": true,
"libc": [
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

revert the lock

@jordividaller jordividaller force-pushed the test/pbyr-3802-e2e-oboarding-scenario branch from 8e8d4f5 to ce8244e Compare May 22, 2026 13:09
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.

3 participants