@@ -12,7 +12,7 @@ test.describe('VGL - VideoGallery tests', () => {
12
12
await page . evaluate ( ( ) => document . fonts . ready ) ;
13
13
} ) ;
14
14
15
- test ( 'VideoGallery with only audio participants and dominant speakers' , async ( { mount } ) => {
15
+ test ( 'VideoGallery with only audio participants and dominant speakers' , async ( { page , mount } ) => {
16
16
const localParticipant : VideoGalleryLocalParticipant = { userId : 'test' } ;
17
17
const remoteParticipants : VideoGalleryRemoteParticipant [ ] = Array . from ( { length : 10 } , ( _ , i ) => i + 1 ) . map (
18
18
( i ) => ( {
@@ -29,6 +29,7 @@ test.describe('VGL - VideoGallery tests', () => {
29
29
/>
30
30
</ Stack >
31
31
) ;
32
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
32
33
await expect ( component ) . toHaveScreenshot ( 'VGL-1-1-videogallery-with-audio-only-before-dominant-speakers.png' ) ;
33
34
await component . update (
34
35
< Stack styles = { { root : { width : '90vw' , height : '90vh' } } } >
@@ -40,10 +41,11 @@ test.describe('VGL - VideoGallery tests', () => {
40
41
/>
41
42
</ Stack >
42
43
) ;
44
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
43
45
await expect ( component ) . toHaveScreenshot ( 'VGL-1-2-videogallery-with-audio-only-after-dominant-speakers.png' ) ;
44
46
} ) ;
45
47
46
- test ( 'VideoGallery with video participants and dominant speakers' , async ( { mount } ) => {
48
+ test ( 'VideoGallery with video participants and dominant speakers' , async ( { page , mount } ) => {
47
49
const localParticipant : VideoGalleryLocalParticipant = { userId : 'test' } ;
48
50
const remoteParticipants : VideoGalleryRemoteParticipant [ ] = Array . from ( { length : 10 } , ( _ , i ) => i + 1 ) . map (
49
51
( i ) => ( {
@@ -67,6 +69,7 @@ test.describe('VGL - VideoGallery tests', () => {
67
69
/>
68
70
</ Stack >
69
71
) ;
72
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
70
73
await expect ( component ) . toHaveScreenshot ( 'VGL-2-1-videogallery-with-some-video-before-dominant-speakers.png' ) ;
71
74
await component . update (
72
75
< Stack styles = { { root : { width : '90vw' , height : '90vh' } } } >
@@ -78,10 +81,11 @@ test.describe('VGL - VideoGallery tests', () => {
78
81
/>
79
82
</ Stack >
80
83
) ;
84
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
81
85
await expect ( component ) . toHaveScreenshot ( 'VGL-2-2-videogallery--with-some-video-after-dominant-speakers.png' ) ;
82
86
} ) ;
83
87
84
- test ( 'VideoGallery with screen share on and dominant speakers' , async ( { mount } ) => {
88
+ test ( 'VideoGallery with screen share on and dominant speakers' , async ( { page , mount } ) => {
85
89
const localParticipant : VideoGalleryLocalParticipant = { userId : 'test' } ;
86
90
const remoteParticipants : VideoGalleryRemoteParticipant [ ] = Array . from ( { length : 10 } , ( _ , i ) => i + 1 ) . map (
87
91
( i ) => ( {
@@ -100,6 +104,7 @@ test.describe('VGL - VideoGallery tests', () => {
100
104
/>
101
105
</ Stack >
102
106
) ;
107
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
103
108
await expect ( component ) . toHaveScreenshot ( 'VGL-3-1-videogallery-with-screen-share-before-dominant-speakers.png' ) ;
104
109
await component . update (
105
110
< Stack styles = { { root : { width : '90vw' , height : '90vw' } } } >
@@ -111,10 +116,11 @@ test.describe('VGL - VideoGallery tests', () => {
111
116
/>
112
117
</ Stack >
113
118
) ;
119
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
114
120
await expect ( component ) . toHaveScreenshot ( 'VGL-3-2-videogallery-with-screen-share-after-dominant-speakers.png' ) ;
115
121
} ) ;
116
122
117
- test ( 'VideoGallery spotlight participant test' , async ( { mount } ) => {
123
+ test ( 'VideoGallery spotlight participant test' , async ( { page , mount } ) => {
118
124
const localParticipant : VideoGalleryLocalParticipant = { userId : 'test' } ;
119
125
const remoteParticipants : VideoGalleryRemoteParticipant [ ] = Array . from ( { length : 10 } , ( _ , i ) => i + 1 ) . map (
120
126
( i ) => ( { userId : `${ i } ` , displayName : `${ i } ` } )
@@ -133,6 +139,7 @@ test.describe('VGL - VideoGallery tests', () => {
133
139
/>
134
140
</ Stack >
135
141
) ;
142
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
136
143
await expect ( component ) . toHaveScreenshot ( 'VGL-4-1-videogallery-before-spotlight.png' ) ;
137
144
remoteParticipants [ 7 ] . spotlight = { spotlightedOrderPosition : 1 } ;
138
145
component . update (
@@ -145,6 +152,7 @@ test.describe('VGL - VideoGallery tests', () => {
145
152
/>
146
153
</ Stack >
147
154
) ;
155
+ await page . waitForSelector ( '[key="next-nav-button"]' , { timeout : 1000 } ) ;
148
156
await expect ( component ) . toHaveScreenshot ( 'VGL-4-2-videogallery-after-spotlight.png' ) ;
149
157
} ) ;
150
158
} ) ;
0 commit comments