Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
6b81885
Add User State Widget Functionality Test Suite
Jun 16, 2025
e95adf7
fix(cc-widgets): add timeout to config
PrayagGP Jun 17, 2025
a6494e2
fix(cc-widgets): change login method
PrayagGP Jun 17, 2025
7d675c9
fix(cc-widgets): fix element locators
PrayagGP Jun 17, 2025
63c1ed7
fix(cc-widgets): added data-testid for some checkoxes and updated uti…
PrayagGP Jun 17, 2025
de99f62
fix(cc-widgets): removed console logs from utils
PrayagGP Jun 17, 2025
1c05232
add(cc-widgets): created a testfile that uses BeforeEach login
PrayagGP Jun 17, 2025
c37d18b
add(cc-widgets): created a testfile that uses BeforeAll login
PrayagGP Jun 17, 2025
b8a5b64
fix(cc-widgets): add a constants file
PrayagGP Jun 18, 2025
d2be589
fix(cc-widgets): updated the files based on constants.ts
PrayagGP Jun 18, 2025
d7d31cc
fix(cc-widgets): updated user-state-test.spec.ts
PrayagGP Jun 18, 2025
3d5b734
fix(cc-widgets): updated the testfile by removing some redundant code
PrayagGP Jun 18, 2025
4d11615
fix(cc-widgets): updated the files with constants with respect to the…
PrayagGP Jun 19, 2025
807db7c
fix(cc-widgets): renamed the utility file to stationUtils
PrayagGP Jun 19, 2025
382b982
fix(cc-widgets): removed redundant tests
PrayagGP Jun 19, 2025
b25beb9
fix(cc-widgets): updated it with a constant for the url
PrayagGP Jun 19, 2025
578f6a9
fix(cc-widgets): updated the test file name
PrayagGP Jun 19, 2025
47f7af6
fix(cc-widgets): made the timeouts uniform
PrayagGP Jun 19, 2025
8fb3aec
fix(cc-widgets): updated the testfile for timer sync
PrayagGP Jun 19, 2025
7f7d497
fix(cc-widgets): updated the files by changing the names of methods a…
PrayagGP Jun 23, 2025
f205c98
fix(cc-widgets): updated the files by changing the names of constants…
PrayagGP Jun 23, 2025
a277cb1
fix(cc-widgets): updated the workflow with new env variables
PrayagGP Jun 23, 2025
b9bfd84
fix(cc-widgets): updated the data-testid for buttons
PrayagGP Jun 23, 2025
adfee7f
fix(cc-widgets): updated the file to close the pages once the test ends
PrayagGP Jun 23, 2025
7270aee
fix(cc-widgets): updated the file to close the pages once the test ends
PrayagGP Jun 23, 2025
319df66
fix(cc-widgets): added new functions for relogin and multi-session
PrayagGP Jun 24, 2025
b5c61f5
fix(cc-widgets): updated the files with methods for relogin and multi…
PrayagGP Jun 24, 2025
ad79663
fix(cc-widgets): updated the file to provide trace only on failure
PrayagGP Jun 25, 2025
339ef3f
fix(cc-widgets): removed unnecessary changes to the code
PrayagGP Jun 25, 2025
af40373
fix(cc-widgets): updated the data-testids according to the convention
PrayagGP Jun 25, 2025
3a1f925
fix(cc-widgets): updated the datatestids to follow the convention
PrayagGP Jun 25, 2025
4f805b2
fix(cc-widgets): updated the datatestids to follow the convention
PrayagGP Jun 25, 2025
173d848
Merge branch 'upstream/ccwidgets' into ccwidgets_UserStateTest
PrayagGP Jun 25, 2025
9e77c70
fix(cc-widgets): updated the files with the new changes to the main repo
PrayagGP Jun 25, 2025
ac15df5
fix(cc-widgets): removed unnecessary changes from the file
PrayagGP Jun 25, 2025
da1197c
fix(cc-widgets): removed unnecessary changes from the file
PrayagGP Jun 25, 2025
d7f682c
fix(cc-widgets): add data-testids for all the widgets with checkboxes
PrayagGP Jun 25, 2025
851f496
fix(cc-widgets): add data-testid for webex login button
PrayagGP Jun 25, 2025
8b47756
fix(cc-widgets): optimized the test
PrayagGP Jun 25, 2025
63c9e06
fix(cc-widgets): removed all data-testids
PrayagGP Jun 25, 2025
6a64bd6
fix(cc-widgets): added data-testids to buttons and checkboxes
PrayagGP Jun 25, 2025
b0df09b
fix(cc-widgets): updated the workflow
PrayagGP Jun 25, 2025
6a35e37
fix(cc-widgets): updated the workflow
PrayagGP Jun 25, 2025
327ee08
fix(cc-widgets): updated the workflow
PrayagGP Jun 25, 2025
95927fa
Merge branch 'ccwidgets' into ccwidgets_UserStateTest
PrayagGP Jun 25, 2025
d9e2959
fix(cc-widgets): added a new method for login to any mode and using a…
PrayagGP Jun 27, 2025
1dd64b3
Merge branch 'ccwidgets_UserStateTest' of https://github.com/PrayagGP…
PrayagGP Jun 27, 2025
ae90cac
fix(cc-widgets): add constants for login modes
PrayagGP Jun 27, 2025
46dc2ef
fix(cc-widgets): add separate method for Access Token login and modif…
PrayagGP Jun 27, 2025
d6486de
fix(cc-widgets): add typedoc and improve logic to search for console …
PrayagGP Jun 27, 2025
e854c78
fix(cc-widgets): format the code
PrayagGP Jun 27, 2025
27eb062
fix(cc-widgets): format the code
PrayagGP Jun 27, 2025
10e419e
fix(cc-widgets): format the code
PrayagGP Jun 27, 2025
6686e8f
fix(cc-widgets): format the code
PrayagGP Jun 27, 2025
62068fb
merge ccwidgets into auto
riteshfyi Jun 30, 2025
275aff2
merge upstream/ccwidgets into auto
riteshfyi Jun 30, 2025
b33fc44
fix(cc-widgets): add testid to incoming task & console logs for e2e …
riteshfyi Jul 2, 2025
ef772e1
fix(call-control): add testid to end btn & wrapup btn
riteshfyi Jul 2, 2025
04c0e35
fix(cc-task): add testid to accept btn & decline btn
riteshfyi Jul 2, 2025
3da3280
fix(cc-widgets): updated constants
riteshfyi Jul 2, 2025
5e3169b
fix(cc-widgets): add incomingtaskutils and wrapuputils
riteshfyi Jul 2, 2025
ae0091b
fix(cc-widgets): add timeout to stationLogout
riteshfyi Jul 2, 2025
9025906
fix(cc-widgets): update incoming task tests
riteshfyi Jul 2, 2025
ebaeffc
merge ccwidgets into auto
riteshfyi Jul 2, 2025
6665c96
fix(cc-widgets): update env variables
riteshfyi Jul 2, 2025
4bfb069
fix(cc-widgets): update console logs
riteshfyi Jul 2, 2025
9f4bf92
fix(cc-widgets): add password, email to workflow
riteshfyi Jul 2, 2025
df5fc74
fix(cc-widgets): fix email task issue
riteshfyi Jul 2, 2025
4c2bbc5
fix(cc-widgets): add missing await
riteshfyi Jul 2, 2025
680855a
fix(cc-widgets): update timeouts
riteshfyi Jul 2, 2025
7ca4258
fix(cc-widgets): add dummy audio for automation
riteshfyi Jul 2, 2025
5d29d41
fix(cc-widgets): update wrapup util
riteshfyi Jul 2, 2025
a4581ef
fix(cc-widgets): update env email variable in workflow
riteshfyi Jul 3, 2025
4b90e79
fix(cc-widgets): update env variable for email
riteshfyi Jul 3, 2025
02f8107
fix(cc-widgets): update email env
riteshfyi Jul 3, 2025
d815717
fix(cc-widgets): updated dummy audio for automation
riteshfyi Jul 3, 2025
cadfc85
fix(cc-widgets): remove hardcoded timeouts
riteshfyi Jul 5, 2025
1777651
fix(cc-widgets): add waitfor
riteshfyi Jul 5, 2025
4704381
fix(cc-widgets): update wait timeout
riteshfyi Jul 5, 2025
f42f350
fix(cc-widgets): fix wrapup util
riteshfyi Jul 5, 2025
d9d0eea
fix(cc-widgets): reduce wrapup timeout
riteshfyi Jul 5, 2025
4f15337
fix(cc-widgets): remove unnecessary await
riteshfyi Jul 5, 2025
fdd5ede
fix(cc-widgets): update test order
riteshfyi Jul 5, 2025
a8f07f2
fix(cc-widgets): update wrapup timeouts
riteshfyi Jul 6, 2025
0532706
fix(cc-widgets): add timeouts for stability
riteshfyi Jul 7, 2025
8445299
merge upstream/ccwidgets into ccwidgets
riteshfyi Jul 7, 2025
cc4a60c
fix(cc-widgets): add timeouts to click action
riteshfyi Jul 7, 2025
71cde9d
fix(cc-widgets): update testids
riteshfyi Jul 7, 2025
5de67a1
merge ccwidgets into ccwidgets
riteshfyi Jul 7, 2025
e84a410
fix(cc-widgets): add test for multiple tasks
riteshfyi Jul 8, 2025
29be508
fix(cc-widgets): update env variable names
riteshfyi Jul 8, 2025
bdc2c3a
fix(cc-widgets): update email env variable
riteshfyi Jul 8, 2025
69e0433
Merge branch 'ccwidgets' into auto
Shreyas281299 Jul 9, 2025
75a2949
fix(cc-widgets): add resuable utils to helperUtils
riteshfyi Jul 9, 2025
3f15854
fix(cc-widgets): update imports for incoming task test
riteshfyi Jul 9, 2025
f6fc73c
Merge 'ccwidgets' into auto
riteshfyi Jul 9, 2025
35dad93
fix(cc-widgets): update testids for wrapup
riteshfyi Jul 11, 2025
2d5415f
fix(cc-widgets): add types to constants
riteshfyi Jul 11, 2025
247212c
fix(cc-widgets): move verifyCallback log method to incoming task test…
riteshfyi Jul 11, 2025
9dc4a98
fix(cc-widgets): remove log for isColorClose method
riteshfyi Jul 11, 2025
2e64248
fix(cc-widgets): update typedoc for helperUtils
riteshfyi Jul 11, 2025
095e042
fix(cc-widgets): update default tolerance isColorClose method
riteshfyi Jul 11, 2025
da79cc2
fix(cc-widgets): update type for isColorClose method
riteshfyi Jul 11, 2025
3a0f20d
fix(cc-widgets): update typedoc for waitforStateLogs method
riteshfyi Jul 11, 2025
cd30081
fix(cc-widgets): update typedoc for helperUtils
riteshfyi Jul 11, 2025
67d9989
merge ccwidgets into auto
riteshfyi Jul 11, 2025
3979e31
fix(cc-widgets): update timeouts for incoming task test
riteshfyi Jul 11, 2025
c3fe99d
fix(cc-widgets): update timeout for ccwidgets e2e tests
riteshfyi Jul 11, 2025
ab34a76
fix(cc-widgets): fix indentation
riteshfyi Jul 11, 2025
f35a2c4
merge ccwidgets into auto
riteshfyi Jul 11, 2025
4dc7ec2
Merge branch 'upstream/ccwidgets' into auto
riteshfyi Jul 14, 2025
400efd3
fix(cc-widgets): update pagesetup for multiple agents
riteshfyi Jul 14, 2025
172a5d4
fix(cc-widgets): remove extra space from pull-request.yml
riteshfyi Jul 14, 2025
c1e6da8
fix(cc-widgets) : add type to waitForState method
riteshfyi Jul 14, 2025
e7d9941
fix(cc-widgets): add type to helperUtils
riteshfyi Jul 14, 2025
22874c1
fix(cc-widgets): update timeout for intialiseWidgets
riteshfyi Jul 14, 2025
b37c4ee
fix(cc-widgets): update pagesetup
riteshfyi Jul 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@ jobs:
run: yarn run test:tooling

- name: Test CC Widgets
run: yarn run test:cc-widgets
run: yarn run test:cc-widgets
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"jest": "29.7.0",
"jest-canvas-mock": "^2.5.2",
"node-gyp": "^10.2.0",
"nodemailer": "^7.0.3",
"os-browserify": "^0.3.0",
"process": "^0.11.10",
"querystring-es3": "^0.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function CallControlComponent(props: CallControlComponentProps) {
button.className +
(button.disabled || (consultInitiated && isTelephony) ? ` ${button.className}-disabled` : '')
}
data-testid="ButtonCircle"
data-testid={button.id === 'end' ? 'call-control:end-call' : button.id}
onPress={button.onClick}
disabled={button.disabled || (consultInitiated && isTelephony)}
aria-label={button.tooltip}
Expand Down Expand Up @@ -332,6 +332,7 @@ function CallControlComponent(props: CallControlComponentProps) {
postfix-icon="arrow-down-bold"
type="button"
role="button"
data-testid="call-control:wrapup-button"
>
{WRAP_UP}
</Button>
Expand Down Expand Up @@ -362,6 +363,7 @@ function CallControlComponent(props: CallControlComponentProps) {
info-icon-aria-label=""
name=""
className="wrapup-select"
data-testid="call-control:wrapup-select"
placeholder={SELECT}
onChange={(event: CustomEvent) => {
const key = event.detail.value;
Expand All @@ -370,7 +372,11 @@ function CallControlComponent(props: CallControlComponentProps) {
}}
>
{wrapupCodes?.map((code) => (
<Option key={code.id} value={code.id}>
<Option
key={code.id}
value={code.id}
data-testid={`call-control:wrapup-reason-${code.name.toLowerCase()}`}
>
{code.name}
</Option>
))}
Expand All @@ -379,7 +385,7 @@ function CallControlComponent(props: CallControlComponentProps) {
onClick={handleWrapupCall}
variant="primary"
className="submit-wrapup-button"
data-testid="submit-wrapup-button"
data-testid="call-control:wrapup-submit"
aria-label="Submit wrap-up"
disabled={selectedWrapupId && selectedWrapupReason ? false : true}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ const Task: React.FC<TaskProps> = ({
<ListItemBaseSection position="end">
<div className="task-button-container">
{acceptText ? (
<ButtonPill onPress={acceptTask} color="join" disabled={disableAccept}>
<ButtonPill onPress={acceptTask} color="join" disabled={disableAccept} data-testid="task:accept-button">
{acceptText}
</ButtonPill>
) : null}
{declineText ? (
<ButtonPill onPress={declineTask} color="cancel">
<ButtonPill onPress={declineTask} color="cancel" data-testid="task:decline-button">
{declineText}
</ButtonPill>
) : null}
Expand Down
22 changes: 19 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import {defineConfig, devices} from '@playwright/test';
import { defineConfig, devices } from '@playwright/test';
import dotenv from 'dotenv';
import path from 'path';

// Alternatively, read from "../my.env" file.
dotenv.config({path: path.resolve(__dirname, '.env')});
dotenv.config({ path: path.resolve(__dirname, '.env') });

/**
* See https://playwright.dev/docs/test-configuration.
*/
const dummyAudioPath = path.resolve(__dirname, './playwright/wav/dummyAudio.wav');
export default defineConfig({
testDir: './playwright',
/* Maximum time one test can run for. */
Expand Down Expand Up @@ -45,7 +46,22 @@ export default defineConfig({
},
{
name: 'Test: Chrome',
use: {...devices['Desktop Chrome']},
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: [
`--disable-site-isolation-trials`,
`--disable-web-security`,
`--no-sandbox`,
`--disable-features=WebRtcHideLocalIpsWithMdns`,
`--allow-file-access-from-files`,
`--use-fake-ui-for-media-stream`,
`--use-fake-device-for-media-stream`,
`--use-file-for-fake-audio-capture=${dummyAudioPath}`,
],
}
},

},
// Once we have stability for playwright tests, we can enable the following browsers
// {
Expand Down
Loading
Loading