@@ -4,7 +4,7 @@ import {tenantName} from '../../../utils/constants';
44import { toggleExperiment } from '../../../utils/toggleExperiment' ;
55import { TenantPage } from '../TenantPage' ;
66
7- import { ButtonNames , QueryEditor } from './models/QueryEditor' ;
7+ import { QueryEditor } from './models/QueryEditor' ;
88
99test . describe ( 'Test Plan to SVG functionality' , async ( ) => {
1010 const testQuery = 'SELECT 1;' ; // Simple query that will generate a plan
@@ -24,30 +24,25 @@ test.describe('Test Plan to SVG functionality', async () => {
2424 const queryEditor = new QueryEditor ( page ) ;
2525
2626 // 1. Turn on Plan to SVG experiment
27- await toggleExperiment ( page , 'on' , 'Plan to SVG ' ) ;
27+ await toggleExperiment ( page , 'on' , 'Execution plan ' ) ;
2828
29- // 2. Set stats level to Full
30- await queryEditor . clickGearButton ( ) ;
31- await queryEditor . settingsDialog . changeStatsLevel ( 'Full' ) ;
32- await queryEditor . settingsDialog . clickButton ( ButtonNames . Save ) ;
33-
34- // 3. Set query and run it
29+ // 2. Set query and run it
3530 await queryEditor . setQuery ( testQuery ) ;
3631 await queryEditor . clickRunButton ( ) ;
3732
38- // 4 . Wait for query execution to complete
33+ // 3 . Wait for query execution to complete
3934 await expect ( async ( ) => {
4035 const status = await queryEditor . getExecutionStatus ( ) ;
4136 expect ( status ) . toBe ( 'Completed' ) ;
4237 } ) . toPass ( ) ;
4338
44- // 5 . Check if Execution Plan button appears and click it
39+ // 4 . Check if Execution Plan button appears and click it
4540 const executionPlanButton = page . locator ( 'button:has-text("Execution plan")' ) ;
4641 await expect ( executionPlanButton ) . toBeVisible ( ) ;
4742 await executionPlanButton . click ( ) ;
4843 await page . waitForTimeout ( 1000 ) ; // Wait for new tab to open
4944
50- // 6 . Verify we're taken to a new tab with SVG content
45+ // 5 . Verify we're taken to a new tab with SVG content
5146 const svgElement = page . locator ( 'svg' ) . first ( ) ;
5247 await expect ( svgElement ) . toBeVisible ( ) ;
5348 } ) ;
0 commit comments