Add Playwright E2E suite (46 tests) + app testids + test_cases.md
- e2e/: full Playwright suite covering every spec case (staff auth/UI, welcome + session check-in, attendee access/gating, connections, profile visibility, speaker material, sponsor, feedback, E2E journeys, role security matrix). 46/46 passing. - apps/convivo: add data-testid attributes (gate, tabs, scanner, toggles) to support the E2E suite. - test_cases.md: spec-case-to-test coverage map (all cases fully covered). - .gitignore: ignore e2e node_modules/reports/test-results. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
b08a439949
commit
d5ec009cb5
44 files changed
+3715
-26
No files matched your search
@@ -103,16 +103,17 @@ export function Profile() {
|
||||
<input
|
||||
className="input"
|
||||
type="url"
|
||||
data-testid="profile-linkedin-url"
|
||||
placeholder="https://linkedin.com/in/you"
|
||||
value={linkedin}
|
||||
onChange={(e) => setLinkedin(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 10, marginBottom: 14 }}>
|
||||
<Toggle checked={showEmail} onChange={setShowEmail} label="Show my email" />
|
||||
<Toggle checked={showLinkedin} onChange={setShowLinkedin} label="Show my LinkedIn" />
|
||||
<Toggle checked={showEmail} onChange={setShowEmail} label="Show my email" testId="profile-show-email" />
|
||||
<Toggle checked={showLinkedin} onChange={setShowLinkedin} label="Show my LinkedIn" testId="profile-show-linkedin" />
|
||||
</div>
|
||||
<button className="btn primary" disabled={saving} onClick={() => void saveProfile()}>
|
||||
<button className="btn primary" data-testid="profile-save" disabled={saving} onClick={() => void saveProfile()}>
|
||||
{saving ? 'Saving…' : 'Save profile'}
|
||||
</button>
|
||||
</div>
|
||||
@@ -139,7 +140,7 @@ export function Profile() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<button className="btn danger" onClick={() => void signOut()}>Log out</button>
|
||||
<button className="btn danger" data-testid="profile-logout" onClick={() => void signOut()}>Log out</button>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user