-
Notifications
You must be signed in to change notification settings - Fork 397
test(calling): added playwright tests for call settings #5012
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
Changes from 6 commits
fea1944
1609b55
e68b9a7
c3e809a
5f5ffbb
5b1228e
b41dfbd
f40b29d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,22 +86,24 @@ export default defineConfig({ | |
| }, | ||
|
|
||
| // Single-user registration sets (generated from USER_SETS, depend on OAuth) | ||
| ...['SET_REGISTRATION_1', 'SET_REGISTRATION_2', 'SET_REGISTRATION_3', 'SET_CONTACTS'].flatMap((key) => [ | ||
| { | ||
| name: `${key} - PROD`, | ||
| dependencies: ['OAuth - PROD'], | ||
| testDir: './playwright/suites', | ||
| testMatch: USER_SETS[key].testSuite, | ||
| use: browserOptions[PW_BROWSER], | ||
| }, | ||
| { | ||
| name: `${key} - INT`, | ||
| dependencies: ['OAuth - INT'], | ||
| testDir: './playwright/suites', | ||
| testMatch: USER_SETS[key].testSuite, | ||
| use: {...browserOptions[PW_BROWSER], testEnv: 'int'} as any, | ||
| }, | ||
| ]), | ||
| ...['SET_REGISTRATION_1', 'SET_REGISTRATION_2', 'SET_REGISTRATION_3', 'SET_CONTACTS'].flatMap( | ||
| (key) => [ | ||
| { | ||
| name: `${key} - PROD`, | ||
| dependencies: ['OAuth - PROD'], | ||
| testDir: './playwright/suites', | ||
| testMatch: USER_SETS[key].testSuite, | ||
| use: browserOptions[PW_BROWSER], | ||
| }, | ||
| { | ||
| name: `${key} - INT`, | ||
| dependencies: ['OAuth - INT'], | ||
| testDir: './playwright/suites', | ||
| testMatch: USER_SETS[key].testSuite, | ||
| use: {...browserOptions[PW_BROWSER], testEnv: 'int'} as any, | ||
| }, | ||
| ] | ||
| ), | ||
|
|
||
| // 2-user call tests (PROD uses USER_4+USER_5, parallel with registration sets) | ||
| { | ||
|
|
@@ -139,5 +141,40 @@ export default defineConfig({ | |
| testMatch: USER_SETS.SET_CALL_TRANSFER_CONSULT.testSuite, | ||
| use: {...browserOptions[PW_BROWSER], testEnv: 'int'} as any, | ||
| }, | ||
| // Single-user Call Settings tests — shares USER_1/2/3 with registration and transfer | ||
| { | ||
| name: 'SET_CALL_SETTINGS - PROD', | ||
| // Depends on SET_CALL so USER_4 (the CF forward destination) is deregistered | ||
| // before the CF tests run, preventing forwarded calls from ringing a live | ||
| // device in another suite. The dependency is explicit (not just transitive | ||
| // via SET_CALL_TRANSFER_CONSULT) so the ordering survives future refactors. | ||
| dependencies: [ | ||
| 'OAuth - PROD', | ||
| 'SET_REGISTRATION_1 - PROD', | ||
| 'SET_REGISTRATION_2 - PROD', | ||
| 'SET_REGISTRATION_3 - PROD', | ||
| 'SET_CALL - PROD', | ||
| 'SET_CALL_TRANSFER_CONSULT - PROD', | ||
| ], | ||
| testDir: './playwright/suites', | ||
| testMatch: USER_SETS.SET_CALL_SETTINGS.testSuite, | ||
| use: browserOptions[PW_BROWSER], | ||
| }, | ||
| { | ||
| name: 'SET_CALL_SETTINGS - INT', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Account isolation violation: SET_CALL_SETTINGS shares USER_1/2/3 with registration tests
This needs
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added dependencies on SET_REGISTRATION_1/2/3 and SET_CALL_TRANSFER_CONSULT for both PROD and INT so SET_CALL_SETTINGS won’t run concurrently with other suites using USER_1/2/3. |
||
| // See PROD note above: explicit SET_CALL dependency guarantees USER_4 is | ||
| // deregistered before the CF tests forward calls to it. | ||
| dependencies: [ | ||
| 'OAuth - INT', | ||
| 'SET_REGISTRATION_1 - INT', | ||
| 'SET_REGISTRATION_2 - INT', | ||
| 'SET_REGISTRATION_3 - INT', | ||
| 'SET_CALL - INT', | ||
| 'SET_CALL_TRANSFER_CONSULT - INT', | ||
| ], | ||
| testDir: './playwright/suites', | ||
| testMatch: USER_SETS.SET_CALL_SETTINGS.testSuite, | ||
| use: {...browserOptions[PW_BROWSER], testEnv: 'int'} as any, | ||
| }, | ||
| ], | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import {callSettingsTests, callSettingsCallTests} from '../test-groups/call-settings'; | ||
|
|
||
| // Account roles resolved from testInfo.project.name → USER_SETS. | ||
| // SET_CALL_SETTINGS: accounts[0] = USER_3 (settings owner), accounts[1] = USER_2 (caller). | ||
| callSettingsTests(); | ||
| callSettingsCallTests(); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,6 +127,16 @@ export const USER_SETS: Record<string, UserSet> = { | |
| accounts: ['USER_6'], | ||
| testSuite: 'contacts.spec.ts', | ||
| }, | ||
|
|
||
| // Call Settings E2E tests: | ||
| // accounts[0] = USER_3 — settings owner / callee | ||
| // accounts[1] = USER_2 — primary caller (also used for busy-state first call) | ||
| // accounts[2] = USER_1 — second caller (places call while USER_3 is already busy) | ||
| SET_CALL_SETTINGS: { | ||
| name: 'SET_CALL_SETTINGS', | ||
| accounts: ['USER_3', 'USER_2', 'USER_1'], | ||
| testSuite: 'set-call-settings.spec.ts', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CRITICAL: Missing closing The SET_CALL_SETTINGS: {
name: 'SET_CALL_SETTINGS',
accounts: ['USER_3', 'USER_2', 'USER_1'],
testSuite: 'set-call-settings.spec.ts',
+ },
// Single-user Contacts supplementary service E2E tests
SET_CONTACTS: {
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done chnages applied ,rebase the branch and appiled the changes |
||
| }, | ||
| }; | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.