@theia/playwright 1.23.0-next.28 → 1.23.0-next.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/theia-about-dialog.ts +1 -1
- package/src/theia-explorer-view.ts +3 -3
- package/src/theia-main-menu.ts +1 -1
- package/src/theia-notification-indicator.ts +2 -2
- package/src/theia-notification-overlay.ts +1 -1
- package/src/theia-preference-view.ts +1 -1
- package/src/theia-problem-indicator.ts +1 -1
- package/src/theia-toggle-bottom-indicator.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/playwright",
|
|
3
|
-
"version": "1.23.0-next.
|
|
3
|
+
"version": "1.23.0-next.34+7580b637b76",
|
|
4
4
|
"description": "System tests for Theia",
|
|
5
5
|
"license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7580b637b766203744220f9f35fb6fe7b3a16d56"
|
|
43
43
|
}
|
|
@@ -18,7 +18,7 @@ import { TheiaDialog } from './theia-dialog';
|
|
|
18
18
|
|
|
19
19
|
export class TheiaAboutDialog extends TheiaDialog {
|
|
20
20
|
|
|
21
|
-
async isVisible(): Promise<boolean> {
|
|
21
|
+
override async isVisible(): Promise<boolean> {
|
|
22
22
|
const dialog = await this.page.$(`${this.blockSelector} .theia-aboutDialog`);
|
|
23
23
|
return !!dialog && dialog.isVisible();
|
|
24
24
|
}
|
|
@@ -31,7 +31,7 @@ const TheiaExplorerViewData = {
|
|
|
31
31
|
|
|
32
32
|
export class TheiaExplorerFileStatNode extends TheiaTreeNode {
|
|
33
33
|
|
|
34
|
-
constructor(protected elementHandle: ElementHandle<SVGElement | HTMLElement>, protected explorerView: TheiaExplorerView) {
|
|
34
|
+
constructor(protected override elementHandle: ElementHandle<SVGElement | HTMLElement>, protected explorerView: TheiaExplorerView) {
|
|
35
35
|
super(elementHandle, explorerView.app);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -64,11 +64,11 @@ export const DOT_FILES_FILTER: TheiaExplorerFileStatNodePredicate = async node =
|
|
|
64
64
|
|
|
65
65
|
export class TheiaExplorerView extends TheiaView {
|
|
66
66
|
|
|
67
|
-
constructor(
|
|
67
|
+
constructor(app: TheiaApp) {
|
|
68
68
|
super(TheiaExplorerViewData, app);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
async activate(): Promise<void> {
|
|
71
|
+
override async activate(): Promise<void> {
|
|
72
72
|
await super.activate();
|
|
73
73
|
const viewElement = await this.viewElement();
|
|
74
74
|
await viewElement?.waitForSelector('.theia-TreeContainer');
|
package/src/theia-main-menu.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { TheiaPageObject } from './theia-page-object';
|
|
|
21
21
|
import { normalizeId, toTextContentArray } from './util';
|
|
22
22
|
|
|
23
23
|
export class TheiaMainMenu extends TheiaMenu {
|
|
24
|
-
selector = '.p-Menu.p-MenuBar-menu';
|
|
24
|
+
override selector = '.p-Menu.p-MenuBar-menu';
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export class TheiaMenuBar extends TheiaPageObject {
|
|
@@ -26,7 +26,7 @@ export class TheiaNotificationIndicator extends TheiaStatusIndicator {
|
|
|
26
26
|
return 'Notification';
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
async isVisible(): Promise<boolean> {
|
|
29
|
+
override async isVisible(): Promise<boolean> {
|
|
30
30
|
return super.isVisible(NOTIFICATION_ICONS, this.title);
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ export class TheiaNotificationIndicator extends TheiaStatusIndicator {
|
|
|
34
34
|
return super.isVisible(NOTIFICATION_DOT_ICON, this.title);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
async waitForVisible(expectNotifications = false): Promise<void> {
|
|
37
|
+
override async waitForVisible(expectNotifications = false): Promise<void> {
|
|
38
38
|
await super.waitForVisibleByIcon(expectNotifications ? NOTIFICATION_DOT_ICON : NOTIFICATION_ICON);
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -23,7 +23,7 @@ export class TheiaNotificationOverlay extends TheiaPageObject {
|
|
|
23
23
|
protected readonly HEADER_NOTIFICATIONS = 'NOTIFICATIONS';
|
|
24
24
|
protected readonly HEADER_NO_NOTIFICATIONS = 'NO NEW NOTIFICATIONS';
|
|
25
25
|
|
|
26
|
-
constructor(
|
|
26
|
+
constructor(app: TheiaApp, protected notificationIndicator: TheiaNotificationIndicator) {
|
|
27
27
|
super(app);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -55,7 +55,7 @@ export class TheiaPreferenceView extends TheiaView {
|
|
|
55
55
|
super(TheiaSettingsViewData, app);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
async open(preferenceScope = TheiaPreferenceScope.Workspace): Promise<TheiaView> {
|
|
58
|
+
override async open(preferenceScope = TheiaPreferenceScope.Workspace): Promise<TheiaView> {
|
|
59
59
|
await this.app.quickCommandPalette.trigger('Preferences: Open Settings (UI)');
|
|
60
60
|
await this.waitForVisible();
|
|
61
61
|
await this.openPreferenceScope(preferenceScope);
|
|
@@ -21,7 +21,7 @@ const PROBLEM_ICON = 'codicon-error';
|
|
|
21
21
|
|
|
22
22
|
export class TheiaProblemIndicator extends TheiaStatusIndicator {
|
|
23
23
|
|
|
24
|
-
async isVisible(): Promise<boolean> {
|
|
24
|
+
override async isVisible(): Promise<boolean> {
|
|
25
25
|
const handle = await super.getElementHandleByIcon(PROBLEM_ICON);
|
|
26
26
|
return !!handle && handle.isVisible();
|
|
27
27
|
}
|
|
@@ -19,7 +19,7 @@ import { TheiaStatusIndicator } from './theia-status-indicator';
|
|
|
19
19
|
const TOGGLE_BOTTOM_ICON = 'codicon-window';
|
|
20
20
|
|
|
21
21
|
export class TheiaToggleBottomIndicator extends TheiaStatusIndicator {
|
|
22
|
-
async isVisible(): Promise<boolean> {
|
|
22
|
+
override async isVisible(): Promise<boolean> {
|
|
23
23
|
return super.isVisible(TOGGLE_BOTTOM_ICON);
|
|
24
24
|
}
|
|
25
25
|
}
|