@@ -7,6 +7,7 @@ import { ElementHelper } from "./helper/elementHelper";
77import { Element } from "./helper/constants" ;
88import { BaseSmokeTest } from "./helper/baseSmokeTest" ;
99import { SmokeTestLogger } from "./helper/smokeTestLogger" ;
10+ import { TimeoutConstants } from "./helper/timeoutConstants" ;
1011
1112export function startCDPNodeVersionCompatibilityTests ( ) : void {
1213 describe ( "CDPNodeVersionCompatibilityTest" , ( ) => {
@@ -18,7 +19,7 @@ export function startCDPNodeVersionCompatibilityTests(): void {
1819 await ComponentHelper . openRunAndDebugTab ( ) ;
1920 await ElementHelper . WaitElementClassNameVisible (
2021 Element . runAndDebugTabButtonClassName ,
21- 5000 ,
22+ TimeoutConstants . COMMAND_PALETTE_TIMEOUT ,
2223 ) ;
2324
2425 SmokeTestLogger . info ( "Run and Debug tab is accessible" ) ;
@@ -28,12 +29,15 @@ export function startCDPNodeVersionCompatibilityTests(): void {
2829 await BaseSmokeTest . initApp ( ) ;
2930
3031 await ComponentHelper . openCommandPalette ( ) ;
31- await ElementHelper . WaitElementClassNameVisible ( Element . commandPaletteClassName , 5000 ) ;
32+ await ElementHelper . WaitElementClassNameVisible (
33+ Element . commandPaletteClassName ,
34+ TimeoutConstants . COMMAND_PALETTE_TIMEOUT ,
35+ ) ;
3236
3337 await ElementHelper . inputText ( "debug" ) ;
3438 const option = await ElementHelper . WaitElementSelectorVisible (
3539 Element . commandPaletteFocusedItemSelector ,
36- 5000 ,
40+ TimeoutConstants . COMMAND_PALETTE_TIMEOUT ,
3741 ) ;
3842
3943 const value = await option . getAttribute ( "aria-label" ) ;
0 commit comments