feat: Implement user profile and parent profile button tests
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m38s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m38s
- Added tests for user profile editing, including name changes, image uploads, and password changes. - Implemented tests for changing the parent PIN with verification code handling. - Created tests for account deletion with confirmation dialog and email validation. - Introduced parent profile button tests for both temporary and permanent modes, verifying badge visibility and menu options. - Updated Playwright configuration to include new test buckets for user profile and parent profile button scenarios. - Added e2e plans documentation for user profile and parent profile button tests.
This commit is contained in:
@@ -98,6 +98,38 @@ export default defineConfig({
|
||||
testMatch: [/mode_parent\/task-modification\/.+\.spec\.ts/],
|
||||
},
|
||||
|
||||
{
|
||||
// Bucket: parent profile button tests (permanent parent mode).
|
||||
name: 'chromium-profile-button',
|
||||
use: { ...devices['Desktop Chrome'], storageState: STORAGE_STATE },
|
||||
dependencies: ['setup'],
|
||||
testMatch: [/mode_parent\/profile-button\/.+\.spec\.ts/],
|
||||
},
|
||||
|
||||
{
|
||||
// Bucket: user profile editing tests (name, image, save/cancel, change password).
|
||||
name: 'chromium-user-profile',
|
||||
use: { ...devices['Desktop Chrome'], storageState: STORAGE_STATE },
|
||||
dependencies: ['setup'],
|
||||
testMatch: [/mode_parent\/user-profile\/profile-editing\.spec\.ts/],
|
||||
},
|
||||
|
||||
{
|
||||
// Bucket: change PIN flow tests — restores the original PIN in afterAll.
|
||||
name: 'chromium-user-profile-pin',
|
||||
use: { ...devices['Desktop Chrome'], storageState: STORAGE_STATE },
|
||||
dependencies: ['setup'],
|
||||
testMatch: [/mode_parent\/user-profile\/change-pin\.spec\.ts/],
|
||||
},
|
||||
|
||||
{
|
||||
// Bucket: delete account tests — MUST run last; re-seeds the DB in afterAll.
|
||||
name: 'chromium-user-profile-delete',
|
||||
use: { ...devices['Desktop Chrome'], storageState: STORAGE_STATE },
|
||||
dependencies: ['setup'],
|
||||
testMatch: [/mode_parent\/user-profile\/delete-account\.spec\.ts/],
|
||||
},
|
||||
|
||||
{
|
||||
name: 'chromium-tasks-rewards',
|
||||
use: { ...devices['Desktop Chrome'], storageState: STORAGE_STATE },
|
||||
@@ -109,6 +141,8 @@ export default defineConfig({
|
||||
/mode_parent\/task-assignment\//,
|
||||
/mode_parent\/task-activation\//,
|
||||
/mode_parent\/task-modification\//,
|
||||
/mode_parent\/profile-button\//,
|
||||
/mode_parent\/user-profile\//,
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user