Skip to content

Commit 325842f

Browse files
authored
👻 Timeouts improvements (#86)
* change timeouts Signed-off-by: Alejandro Brugarolas <[email protected]> * change timeouts Signed-off-by: Alejandro Brugarolas <[email protected]> --------- Signed-off-by: Alejandro Brugarolas <[email protected]>
1 parent bfef393 commit 325842f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

e2e/pages/vscode.pages.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import * as path from 'path';
1616
import { LeftBarItems } from '../enums/left-bar-items.enum';
1717
import { expect } from '@playwright/test';
1818
import { Application } from './application.pages';
19+
import { SCREENSHOTS_FOLDER } from '../utilities/consts';
1920

2021
export class VSCode extends Application {
2122
public static async open(workspaceDir: string) {
@@ -155,19 +156,22 @@ export class VSCode extends Application {
155156

156157
public async selectSourcesAndTargets(sources: string[], targets: string[]) {
157158
const window = this.window;
159+
await this.waitDefault();
158160
await this.executeQuickCommand('sources and targets');
159161
await this.waitDefault();
162+
await window.screenshot({
163+
path: `${SCREENSHOTS_FOLDER}/debug-target.png`,
164+
});
160165
const targetInput = window.getByPlaceholder('Choose one or more target');
161166
await this.waitDefault();
162167
await expect(targetInput).toBeVisible({ timeout: 30000 });
163168
for (const target of targets) {
164169
await targetInput.fill(target);
165-
await this.waitDefault();
170+
166171
await window
167172
.getByRole('checkbox', { name: `${target}` })
168173
.nth(1)
169174
.click();
170-
await this.waitDefault();
171175
}
172176
await this.waitDefault();
173177
await targetInput.press('Enter');

0 commit comments

Comments
 (0)