Skip to content

Commit db71c71

Browse files
authored
Refactor client Call Fabric E2E tests - Pass 1 (#1305)
1 parent 87faf53 commit db71c71

File tree

14 files changed

+3083
-1125
lines changed

14 files changed

+3083
-1125
lines changed

.github/workflows/browser-client-production.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,22 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
node-version: [20.x]
21-
project: [default, callfabric, renegotiation, videoElement]
21+
project:
22+
[
23+
default,
24+
Utilities,
25+
CoreRoom,
26+
AudioVideo,
27+
Device,
28+
Agent,
29+
Connection,
30+
Interaction,
31+
Renegotiation,
32+
Conversation,
33+
IncomingCall,
34+
Websocket,
35+
VideoElement,
36+
]
2237
steps:
2338
- uses: actions/checkout@v4
2439
- name: Install deps

.github/workflows/browser-client-staging.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,22 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
node-version: [20.x]
21-
project: [default, callfabric, renegotiation, videoElement]
21+
project:
22+
[
23+
default,
24+
Utilities,
25+
CoreRoom,
26+
AudioVideo,
27+
Device,
28+
Agent,
29+
Connection,
30+
Interaction,
31+
Renegotiation,
32+
Conversation,
33+
IncomingCall,
34+
Websocket,
35+
VideoElement,
36+
]
2237
steps:
2338
- uses: actions/checkout@v4
2439
- name: Install deps

internal/e2e-client/playwright.config.ts

Lines changed: 99 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,46 @@ require('dotenv').config()
22

33
import { PlaywrightTestConfig, devices } from '@playwright/test'
44

5-
const callfabricTests = [
6-
'address.spec.ts',
7-
'agent_customer.spec.ts',
8-
'audioFlags.spec.ts',
9-
'cleanup.spec.ts',
10-
'conversation.spec.ts',
11-
'deviceEvent.spec.ts',
12-
'deviceState.spec.ts',
13-
'holdunhold.spec.ts',
14-
'incomingCall.spec.ts',
15-
'mirrorVideo.spec.ts',
16-
'muteUnmuteAll.spec.ts',
17-
'raiseHand.spec.ts',
18-
'reattach.spec.ts',
19-
'relayApp.spec.ts',
20-
'swml.spec.ts',
21-
'videoRoom.spec.ts',
22-
'videoRoomLayout.spec.ts',
5+
const callfabricCoreRoomTests = [
6+
'callfabric/videoRoom.spec.ts',
7+
'callfabric/videoRoomLayout.spec.ts',
238
]
24-
const renegotiationTests = [
25-
'renegotiateAudio.spec.ts',
26-
'renegotiateVideo.spec.ts',
9+
const callfabricAudioVideoTests = [
10+
'callfabric/audioFlags.spec.ts',
11+
'callfabric/mirrorVideo.spec.ts',
12+
'callfabric/muteUnmuteAll.spec.ts',
2713
]
28-
const videoElementTests = ['buildVideoWithCallSDK.spec.ts']
14+
const callfabricDeviceTests = [
15+
'callfabric/deviceEvent.spec.ts',
16+
'callfabric/deviceState.spec.ts',
17+
]
18+
const callfabricAgentTests = [
19+
'callfabric/agent_customer.spec.ts',
20+
'callfabric/address.spec.ts',
21+
'callfabric/relayApp.spec.ts',
22+
'callfabric/swml.spec.ts',
23+
]
24+
const callfabricConnectionTests = [
25+
'callfabric/reattach.spec.ts',
26+
'callfabric/cleanup.spec.ts',
27+
]
28+
const callfabricInteractionTests = [
29+
'callfabric/raiseHand.spec.ts',
30+
'callfabric/holdunhold.spec.ts',
31+
]
32+
const callfabricRenegotiationTests = [
33+
'callfabric/renegotiateAudio.spec.ts',
34+
'callfabric/renegotiateVideo.spec.ts',
35+
]
36+
const callfabricConversationTests = ['callfabric/conversation.spec.ts']
37+
const callfabricIncomingCallTests = ['callfabric/incomingCall.spec.ts']
38+
const callFabricWebsocketTests = [
39+
'callfabric/incoming_call_over_websocket.spec.ts',
40+
'callfabric/websocket_reconnect.spec.ts',
41+
]
42+
const callfabricUtilsTests = ['callfabric/utils.spec.ts']
43+
44+
const videoElementTests = ['buildVideoWithFabricSDK.spec.ts']
2945

3046
const useDesktopChrome: PlaywrightTestConfig['use'] = {
3147
...devices['Desktop Chrome'],
@@ -61,23 +77,77 @@ const config: PlaywrightTestConfig = {
6177
name: 'default',
6278
use: useDesktopChrome,
6379
testIgnore: [
64-
...callfabricTests,
65-
...renegotiationTests,
80+
...callfabricAgentTests,
81+
...callfabricCoreRoomTests,
82+
...callfabricAudioVideoTests,
83+
...callfabricDeviceTests,
84+
...callfabricConnectionTests,
85+
...callfabricInteractionTests,
86+
...callfabricConversationTests,
87+
...callfabricIncomingCallTests,
88+
...callFabricWebsocketTests,
89+
...callfabricUtilsTests,
90+
...callfabricRenegotiationTests,
6691
...videoElementTests,
6792
],
6893
},
6994
{
70-
name: 'callfabric',
95+
name: 'Utilities',
96+
use: useDesktopChrome,
97+
testMatch: callfabricUtilsTests,
98+
},
99+
{
100+
name: 'CoreRoom',
101+
use: useDesktopChrome,
102+
testMatch: callfabricCoreRoomTests,
103+
},
104+
{
105+
name: 'AudioVideo',
106+
use: useDesktopChrome,
107+
testMatch: callfabricAudioVideoTests,
108+
},
109+
{
110+
name: 'Device',
111+
use: useDesktopChrome,
112+
testMatch: callfabricDeviceTests,
113+
},
114+
{
115+
name: 'Agent',
116+
use: useDesktopChrome,
117+
testMatch: callfabricAgentTests,
118+
},
119+
{
120+
name: 'Connection',
121+
use: useDesktopChrome,
122+
testMatch: callfabricConnectionTests,
123+
},
124+
{
125+
name: 'Interaction',
126+
use: useDesktopChrome,
127+
testMatch: callfabricInteractionTests,
128+
},
129+
{
130+
name: 'Renegotiation',
131+
use: useDesktopChrome,
132+
testMatch: callfabricRenegotiationTests,
133+
},
134+
{
135+
name: 'Conversation',
136+
use: useDesktopChrome,
137+
testMatch: callfabricConversationTests,
138+
},
139+
{
140+
name: 'IncomingCall',
71141
use: useDesktopChrome,
72-
testMatch: callfabricTests,
142+
testMatch: callfabricIncomingCallTests,
73143
},
74144
{
75-
name: 'renegotiation',
145+
name: 'Websocket',
76146
use: useDesktopChrome,
77-
testMatch: renegotiationTests,
147+
testMatch: callFabricWebsocketTests,
78148
},
79149
{
80-
name: 'videoElement',
150+
name: 'VideoElement',
81151
use: useDesktopChrome,
82152
testMatch: videoElementTests,
83153
},

0 commit comments

Comments
 (0)