1
- import { expect , test } from './baseTest' ;
1
+ import { expect , MaxTimeout , test } from './baseTest' ;
2
2
3
3
test . describe ( 'Test GitLens Command Palette commands' , ( ) => {
4
4
test ( 'should open commit graph with the command' , async ( { page } ) => {
5
5
// Close any open tabs to ensure a clean state
6
6
const welcomePageTab = page . locator ( 'div[role="tab"][aria-label="Welcome to GitLens"]' ) ;
7
- await welcomePageTab . waitFor ( { state : 'visible' , timeout : 5000 } ) ;
7
+ await welcomePageTab . waitFor ( { state : 'visible' , timeout : MaxTimeout } ) ;
8
8
void welcomePageTab . locator ( 'div.tab-actions .action-item a.codicon-close' ) . click ( ) ;
9
9
10
10
// Open the command palette by clicking on the View menu and selecting Command Palette
@@ -13,15 +13,15 @@ test.describe('Test GitLens Command Palette commands', () => {
13
13
14
14
// Wait for the command palette input to be visible and fill it
15
15
const commandPaletteInput = page . locator ( '.quick-input-box input' ) ;
16
- await commandPaletteInput . waitFor ( { state : 'visible' , timeout : 5000 } ) ;
16
+ await commandPaletteInput . waitFor ( { state : 'visible' , timeout : MaxTimeout } ) ;
17
17
await commandPaletteInput . fill ( '> GitLens: Show Commit graph' ) ;
18
18
await page . waitForTimeout ( 1000 ) ;
19
19
void page . keyboard . press ( 'Enter' ) ;
20
20
21
21
// Click on the first element (GitLens: Show Commit graph)
22
22
/*
23
23
const commandPaletteFirstLine = page.locator('.quick-input-widget .monaco-list .monaco-list-row.focused');
24
- await commandPaletteFirstLine.waitFor({ state: 'visible', timeout: 5000 });
24
+ await commandPaletteFirstLine.waitFor({ state: 'visible', timeout: MaxTimeout });
25
25
await commandPaletteFirstLine.click();
26
26
*/
27
27
// Graph should be opened
0 commit comments