File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,20 @@ test.describe('Test Sidebar', async () => {
9494 test ( 'Can toggle experiments in settings' , async ( { page} ) => {
9595 const sidebar = new Sidebar ( page ) ;
9696 const experimentTitle = 'Plan to SVG' ;
97+
9798 await toggleExperiment ( page , 'on' , experimentTitle ) ;
99+ await sidebar . clickSettings ( ) ;
100+ await page . waitForTimeout ( 500 ) ; // Wait for animation
101+ await sidebar . clickExperimentsSection ( ) ;
102+ await page . waitForTimeout ( 500 ) ; // Wait for animation
98103 const newState = await sidebar . isExperimentEnabled ( experimentTitle ) ;
99104 expect ( newState ) . toBe ( true ) ;
100105
101106 await toggleExperiment ( page , 'off' , experimentTitle ) ;
107+ await sidebar . clickSettings ( ) ;
108+ await page . waitForTimeout ( 500 ) ; // Wait for animation
109+ await sidebar . clickExperimentsSection ( ) ;
110+ await page . waitForTimeout ( 500 ) ; // Wait for animation
102111 const finalState = await sidebar . isExperimentEnabled ( experimentTitle ) ;
103112 expect ( finalState ) . toBe ( false ) ;
104113 } ) ;
You can’t perform that action at this time.
0 commit comments