Skip to content

Commit

Permalink
[tests] Increase timeout to stabilize 'Debug Works' Public UI test
Browse files Browse the repository at this point in the history
```
Extension public-facing UI tests
       Extension public-facing UI tests with Kind cluster
         Component Context Menu
           Debug works:
     TimeoutError: Wait timed out after 1029ms
      at /home/runner/work/vscode-openshift-tools/vscode-openshift-tools/node_modules/selenium-webdriver/lib/webdriver.js:913:22
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
```

Signed-off-by: Victor Rubezhny <[email protected]>
  • Loading branch information
vrubezhny committed Aug 28, 2024
1 parent b6f6c89 commit 28c204a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/ui/suite/componentContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*-----------------------------------------------------------------------------------------------*/

import { expect } from 'chai';
import {
ActivityBar,
BottomBarPanel,
Expand All @@ -15,11 +16,10 @@ import {
ViewSection,
VSBrowser,
} from 'vscode-extension-tester';
import { MENUS, VIEWS } from '../common/constants';
import { itemDoesNotExist, itemExists, notificationDoesNotExist } from '../common/conditions';
import { OpenshiftTerminalWebviewView } from '../common/ui/webviewView/openshiftTerminalWebviewView';
import { expect } from 'chai';
import { MENUS, VIEWS } from '../common/constants';
import { collapse } from '../common/overdrives';
import { OpenshiftTerminalWebviewView } from '../common/ui/webviewView/openshiftTerminalWebviewView';

export function testComponentContextMenu() {
describe('Component Context Menu', function () {
Expand Down Expand Up @@ -212,6 +212,8 @@ export function testComponentContextMenu() {
});

it('Debug works', async () => {
this.timeout(80_000);

//select debug from component's context menu
const contextMenu = await component.openContextMenu();
await contextMenu.select(MENUS.debug);
Expand Down

0 comments on commit 28c204a

Please sign in to comment.