@theia/playwright 1.34.3 → 1.34.4
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/LICENSE +641 -641
- package/README.md +54 -54
- package/lib/index.d.ts +25 -25
- package/lib/index.js +52 -52
- package/lib/tests/fixtures/theia-fixture.d.ts +3 -3
- package/lib/tests/fixtures/theia-fixture.js +23 -23
- package/lib/tests/theia-app.test.d.ts +1 -1
- package/lib/tests/theia-app.test.js +29 -29
- package/lib/tests/theia-explorer-view.test.d.ts +1 -1
- package/lib/tests/theia-explorer-view.test.js +109 -109
- package/lib/tests/theia-main-menu.test.d.ts +1 -1
- package/lib/tests/theia-main-menu.test.js +73 -73
- package/lib/tests/theia-preference-view.test.d.ts +1 -1
- package/lib/tests/theia-preference-view.test.js +99 -99
- package/lib/tests/theia-problems-view.test.d.ts +1 -1
- package/lib/tests/theia-problems-view.test.js +52 -52
- package/lib/tests/theia-quick-command.test.d.ts +1 -1
- package/lib/tests/theia-quick-command.test.js +53 -53
- package/lib/tests/theia-sample-app.test.d.ts +1 -1
- package/lib/tests/theia-sample-app.test.js +80 -80
- package/lib/tests/theia-status-bar.test.d.ts +1 -1
- package/lib/tests/theia-status-bar.test.js +41 -41
- package/lib/tests/theia-text-editor.test.d.ts +1 -1
- package/lib/tests/theia-text-editor.test.js +152 -152
- package/lib/tests/theia-workspace.test.d.ts +1 -1
- package/lib/tests/theia-workspace.test.js +47 -47
- package/lib/theia-about-dialog.d.ts +4 -4
- package/lib/theia-about-dialog.js +26 -26
- package/lib/theia-app.d.ts +43 -43
- package/lib/theia-app.js +135 -135
- package/lib/theia-context-menu.d.ts +8 -8
- package/lib/theia-context-menu.js +37 -37
- package/lib/theia-dialog.d.ts +27 -27
- package/lib/theia-dialog.js +98 -98
- package/lib/theia-editor.d.ts +9 -9
- package/lib/theia-editor.js +68 -68
- package/lib/theia-explorer-view.d.ts +38 -38
- package/lib/theia-explorer-view.js +209 -209
- package/lib/theia-main-menu.d.ts +12 -12
- package/lib/theia-main-menu.js +53 -53
- package/lib/theia-menu-item.d.ts +14 -14
- package/lib/theia-menu-item.js +66 -66
- package/lib/theia-menu.d.ts +16 -16
- package/lib/theia-menu.js +86 -86
- package/lib/theia-notification-indicator.d.ts +7 -7
- package/lib/theia-notification-indicator.js +44 -44
- package/lib/theia-notification-overlay.d.ts +22 -22
- package/lib/theia-notification-overlay.js +79 -79
- package/lib/theia-page-object.d.ts +7 -7
- package/lib/theia-page-object.js +27 -27
- package/lib/theia-preference-view.d.ts +76 -76
- package/lib/theia-preference-view.js +201 -201
- package/lib/theia-problem-indicator.d.ts +8 -8
- package/lib/theia-problem-indicator.js +38 -38
- package/lib/theia-problem-view.d.ts +5 -5
- package/lib/theia-problem-view.js +30 -30
- package/lib/theia-quick-command-palette.d.ts +11 -11
- package/lib/theia-quick-command-palette.js +73 -73
- package/lib/theia-rename-dialog.d.ts +5 -5
- package/lib/theia-rename-dialog.js +35 -35
- package/lib/theia-status-bar.d.ts +13 -13
- package/lib/theia-status-bar.js +39 -39
- package/lib/theia-status-indicator.d.ts +10 -10
- package/lib/theia-status-indicator.js +48 -48
- package/lib/theia-text-editor.d.ts +27 -27
- package/lib/theia-text-editor.js +149 -149
- package/lib/theia-toggle-bottom-indicator.d.ts +4 -4
- package/lib/theia-toggle-bottom-indicator.js +26 -26
- package/lib/theia-tree-node.d.ts +16 -16
- package/lib/theia-tree-node.js +53 -53
- package/lib/theia-view.d.ts +32 -32
- package/lib/theia-view.js +151 -151
- package/lib/theia-workspace.d.ts +18 -18
- package/lib/theia-workspace.js +69 -69
- package/lib/util.d.ts +19 -19
- package/lib/util.js +93 -93
- package/package.json +2 -2
- package/src/index.ts +41 -41
- package/src/tests/fixtures/theia-fixture.ts +25 -25
- package/src/tests/resources/sample-files1/sample.txt +4 -4
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder1/sampleFolder1-1/sampleFile1-1-1.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder1/sampleFolder1-1/sampleFile1-1-2.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder1/sampleFolder1-2/sampleFile1-2-1.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder1/sampleFolder1-2/sampleFile1-2-2.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder2/sampleFolder2-1/sampleFile2-1-1.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder2/sampleFolder2-1/sampleFile2-1-2.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder2/sampleFolder2-2/sampleFile2-2-1.txt +1 -1
- package/src/tests/resources/sample-files1/sampleFolder/sampleFolder2/sampleFolder2-2/sampleFile2-2-2.txt +1 -1
- package/src/tests/resources/sample-files2/another-sample.txt +1 -1
- package/src/tests/theia-app.test.ts +34 -34
- package/src/tests/theia-explorer-view.test.ts +124 -124
- package/src/tests/theia-main-menu.test.ts +89 -89
- package/src/tests/theia-preference-view.test.ts +118 -118
- package/src/tests/theia-problems-view.test.ts +60 -60
- package/src/tests/theia-quick-command.test.ts +61 -61
- package/src/tests/theia-sample-app.test.ts +92 -92
- package/src/tests/theia-status-bar.test.ts +47 -47
- package/src/tests/theia-text-editor.test.ts +182 -182
- package/src/tests/theia-workspace.test.ts +51 -51
- package/src/theia-about-dialog.ts +26 -26
- package/src/theia-app.ts +154 -154
- package/src/theia-context-menu.ts +42 -42
- package/src/theia-dialog.ts +113 -113
- package/src/theia-editor.ts +73 -73
- package/src/theia-explorer-view.ts +234 -234
- package/src/theia-main-menu.ts +54 -54
- package/src/theia-menu-item.ts +75 -75
- package/src/theia-menu.ts +96 -96
- package/src/theia-notification-indicator.ts +44 -44
- package/src/theia-notification-overlay.ts +94 -94
- package/src/theia-page-object.ts +29 -29
- package/src/theia-preference-view.ts +232 -232
- package/src/theia-problem-indicator.ts +37 -37
- package/src/theia-problem-view.ts +30 -30
- package/src/theia-quick-command-palette.ts +75 -75
- package/src/theia-rename-dialog.ts +36 -36
- package/src/theia-status-bar.ts +44 -44
- package/src/theia-status-indicator.ts +50 -50
- package/src/theia-text-editor.ts +172 -172
- package/src/theia-toggle-bottom-indicator.ts +21 -21
- package/src/theia-tree-node.ts +60 -60
- package/src/theia-view.ts +178 -178
- package/src/theia-workspace.ts +76 -76
- package/src/util.ts +91 -91
package/README.md
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
<div align='center'>
|
|
2
|
-
|
|
3
|
-
<br />
|
|
4
|
-
|
|
5
|
-
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
-
|
|
7
|
-
<h2>ECLIPSE THEIA - PLAYWRIGHT</h2>
|
|
8
|
-
|
|
9
|
-
<hr />
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
## Description
|
|
14
|
-
|
|
15
|
-
Theia 🎭 Playwright is a [page object](https://martinfowler.com/bliki/PageObject.html) framework based on [Playwright](https://github.com/microsoft/playwright) for developing system tests of [Theia](https://github.com/eclipse-theia/theia)-based applications. See it in action below.
|
|
16
|
-
|
|
17
|
-
<div style='margin:0 auto;width:70%;'>
|
|
18
|
-
|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
The Theia 🎭 Playwright page objects introduce abstraction over Theia's user interfaces, encapsulating the details of the user interface interactions, wait conditions, etc., to help keeping your tests more concise, maintainable, and stable.
|
|
24
|
-
Ready for an [example](./docs/GETTING_STARTED.md)?
|
|
25
|
-
|
|
26
|
-
The actual interaction with the Theia application is implemented with 🎭 Playwright in Typescript. Thus, we can take advantage of [Playwright's benefits](https://playwright.dev/docs/why-playwright/) and run or debug tests headless or headful across all modern browsers.
|
|
27
|
-
Check out [Playwright's documentation](https://playwright.dev/docs/intro) for more information.
|
|
28
|
-
|
|
29
|
-
This page object framework not only covers Theia's generic capabilities, such as handling views, the quick command palette, file explorer etc.
|
|
30
|
-
It is [extensible](./docs/EXTENSIBILITY.md) so you can add dedicated page objects for custom Theia components, such as custom views, editors, menus, etc.
|
|
31
|
-
|
|
32
|
-
## Documentation
|
|
33
|
-
|
|
34
|
-
- [Getting Started](./docs/GETTING_STARTED.md)
|
|
35
|
-
- [Extensibility](./docs/EXTENSIBILITY.md)
|
|
36
|
-
- [Theia 🎭 Playwright Template](https://github.com/eclipse-theia/theia-playwright-template)
|
|
37
|
-
- [Building and Developing Theia 🎭 Playwright](./docs/DEVELOPING.md)
|
|
38
|
-
|
|
39
|
-
## Additional Information
|
|
40
|
-
|
|
41
|
-
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
42
|
-
- [Theia - Website](https://theia-ide.org/)
|
|
43
|
-
- [Playwright - GitHub](https://github.com/microsoft/playwright)
|
|
44
|
-
- [Playwright - Website](https://playwright.dev)
|
|
45
|
-
|
|
46
|
-
## License
|
|
47
|
-
|
|
48
|
-
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
49
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
50
|
-
|
|
51
|
-
## Trademark
|
|
52
|
-
|
|
53
|
-
"Theia" is a trademark of the Eclipse Foundation
|
|
54
|
-
https://www.eclipse.org/theia
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - PLAYWRIGHT</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
Theia 🎭 Playwright is a [page object](https://martinfowler.com/bliki/PageObject.html) framework based on [Playwright](https://github.com/microsoft/playwright) for developing system tests of [Theia](https://github.com/eclipse-theia/theia)-based applications. See it in action below.
|
|
16
|
+
|
|
17
|
+
<div style='margin:0 auto;width:70%;'>
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
The Theia 🎭 Playwright page objects introduce abstraction over Theia's user interfaces, encapsulating the details of the user interface interactions, wait conditions, etc., to help keeping your tests more concise, maintainable, and stable.
|
|
24
|
+
Ready for an [example](./docs/GETTING_STARTED.md)?
|
|
25
|
+
|
|
26
|
+
The actual interaction with the Theia application is implemented with 🎭 Playwright in Typescript. Thus, we can take advantage of [Playwright's benefits](https://playwright.dev/docs/why-playwright/) and run or debug tests headless or headful across all modern browsers.
|
|
27
|
+
Check out [Playwright's documentation](https://playwright.dev/docs/intro) for more information.
|
|
28
|
+
|
|
29
|
+
This page object framework not only covers Theia's generic capabilities, such as handling views, the quick command palette, file explorer etc.
|
|
30
|
+
It is [extensible](./docs/EXTENSIBILITY.md) so you can add dedicated page objects for custom Theia components, such as custom views, editors, menus, etc.
|
|
31
|
+
|
|
32
|
+
## Documentation
|
|
33
|
+
|
|
34
|
+
- [Getting Started](./docs/GETTING_STARTED.md)
|
|
35
|
+
- [Extensibility](./docs/EXTENSIBILITY.md)
|
|
36
|
+
- [Theia 🎭 Playwright Template](https://github.com/eclipse-theia/theia-playwright-template)
|
|
37
|
+
- [Building and Developing Theia 🎭 Playwright](./docs/DEVELOPING.md)
|
|
38
|
+
|
|
39
|
+
## Additional Information
|
|
40
|
+
|
|
41
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
42
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
43
|
+
- [Playwright - GitHub](https://github.com/microsoft/playwright)
|
|
44
|
+
- [Playwright - Website](https://playwright.dev)
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
49
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
50
|
+
|
|
51
|
+
## Trademark
|
|
52
|
+
|
|
53
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
54
|
+
https://www.eclipse.org/theia
|
package/lib/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from './theia-about-dialog';
|
|
2
|
-
export * from './theia-app';
|
|
3
|
-
export * from './theia-context-menu';
|
|
4
|
-
export * from './theia-dialog';
|
|
5
|
-
export * from './theia-editor';
|
|
6
|
-
export * from './theia-explorer-view';
|
|
7
|
-
export * from './theia-main-menu';
|
|
8
|
-
export * from './theia-menu-item';
|
|
9
|
-
export * from './theia-menu';
|
|
10
|
-
export * from './theia-notification-indicator';
|
|
11
|
-
export * from './theia-notification-overlay';
|
|
12
|
-
export * from './theia-page-object';
|
|
13
|
-
export * from './theia-preference-view';
|
|
14
|
-
export * from './theia-problem-indicator';
|
|
15
|
-
export * from './theia-problem-view';
|
|
16
|
-
export * from './theia-quick-command-palette';
|
|
17
|
-
export * from './theia-rename-dialog';
|
|
18
|
-
export * from './theia-status-bar';
|
|
19
|
-
export * from './theia-status-indicator';
|
|
20
|
-
export * from './theia-text-editor';
|
|
21
|
-
export * from './theia-toggle-bottom-indicator';
|
|
22
|
-
export * from './theia-tree-node';
|
|
23
|
-
export * from './theia-view';
|
|
24
|
-
export * from './theia-workspace';
|
|
25
|
-
export * from './util';
|
|
1
|
+
export * from './theia-about-dialog';
|
|
2
|
+
export * from './theia-app';
|
|
3
|
+
export * from './theia-context-menu';
|
|
4
|
+
export * from './theia-dialog';
|
|
5
|
+
export * from './theia-editor';
|
|
6
|
+
export * from './theia-explorer-view';
|
|
7
|
+
export * from './theia-main-menu';
|
|
8
|
+
export * from './theia-menu-item';
|
|
9
|
+
export * from './theia-menu';
|
|
10
|
+
export * from './theia-notification-indicator';
|
|
11
|
+
export * from './theia-notification-overlay';
|
|
12
|
+
export * from './theia-page-object';
|
|
13
|
+
export * from './theia-preference-view';
|
|
14
|
+
export * from './theia-problem-indicator';
|
|
15
|
+
export * from './theia-problem-view';
|
|
16
|
+
export * from './theia-quick-command-palette';
|
|
17
|
+
export * from './theia-rename-dialog';
|
|
18
|
+
export * from './theia-status-bar';
|
|
19
|
+
export * from './theia-status-indicator';
|
|
20
|
+
export * from './theia-text-editor';
|
|
21
|
+
export * from './theia-toggle-bottom-indicator';
|
|
22
|
+
export * from './theia-tree-node';
|
|
23
|
+
export * from './theia-view';
|
|
24
|
+
export * from './theia-workspace';
|
|
25
|
+
export * from './util';
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 EclipseSource and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
__exportStar(require("./theia-about-dialog"), exports);
|
|
29
|
-
__exportStar(require("./theia-app"), exports);
|
|
30
|
-
__exportStar(require("./theia-context-menu"), exports);
|
|
31
|
-
__exportStar(require("./theia-dialog"), exports);
|
|
32
|
-
__exportStar(require("./theia-editor"), exports);
|
|
33
|
-
__exportStar(require("./theia-explorer-view"), exports);
|
|
34
|
-
__exportStar(require("./theia-main-menu"), exports);
|
|
35
|
-
__exportStar(require("./theia-menu-item"), exports);
|
|
36
|
-
__exportStar(require("./theia-menu"), exports);
|
|
37
|
-
__exportStar(require("./theia-notification-indicator"), exports);
|
|
38
|
-
__exportStar(require("./theia-notification-overlay"), exports);
|
|
39
|
-
__exportStar(require("./theia-page-object"), exports);
|
|
40
|
-
__exportStar(require("./theia-preference-view"), exports);
|
|
41
|
-
__exportStar(require("./theia-problem-indicator"), exports);
|
|
42
|
-
__exportStar(require("./theia-problem-view"), exports);
|
|
43
|
-
__exportStar(require("./theia-quick-command-palette"), exports);
|
|
44
|
-
__exportStar(require("./theia-rename-dialog"), exports);
|
|
45
|
-
__exportStar(require("./theia-status-bar"), exports);
|
|
46
|
-
__exportStar(require("./theia-status-indicator"), exports);
|
|
47
|
-
__exportStar(require("./theia-text-editor"), exports);
|
|
48
|
-
__exportStar(require("./theia-toggle-bottom-indicator"), exports);
|
|
49
|
-
__exportStar(require("./theia-tree-node"), exports);
|
|
50
|
-
__exportStar(require("./theia-view"), exports);
|
|
51
|
-
__exportStar(require("./theia-workspace"), exports);
|
|
52
|
-
__exportStar(require("./util"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2022 EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
__exportStar(require("./theia-about-dialog"), exports);
|
|
29
|
+
__exportStar(require("./theia-app"), exports);
|
|
30
|
+
__exportStar(require("./theia-context-menu"), exports);
|
|
31
|
+
__exportStar(require("./theia-dialog"), exports);
|
|
32
|
+
__exportStar(require("./theia-editor"), exports);
|
|
33
|
+
__exportStar(require("./theia-explorer-view"), exports);
|
|
34
|
+
__exportStar(require("./theia-main-menu"), exports);
|
|
35
|
+
__exportStar(require("./theia-menu-item"), exports);
|
|
36
|
+
__exportStar(require("./theia-menu"), exports);
|
|
37
|
+
__exportStar(require("./theia-notification-indicator"), exports);
|
|
38
|
+
__exportStar(require("./theia-notification-overlay"), exports);
|
|
39
|
+
__exportStar(require("./theia-page-object"), exports);
|
|
40
|
+
__exportStar(require("./theia-preference-view"), exports);
|
|
41
|
+
__exportStar(require("./theia-problem-indicator"), exports);
|
|
42
|
+
__exportStar(require("./theia-problem-view"), exports);
|
|
43
|
+
__exportStar(require("./theia-quick-command-palette"), exports);
|
|
44
|
+
__exportStar(require("./theia-rename-dialog"), exports);
|
|
45
|
+
__exportStar(require("./theia-status-bar"), exports);
|
|
46
|
+
__exportStar(require("./theia-status-indicator"), exports);
|
|
47
|
+
__exportStar(require("./theia-text-editor"), exports);
|
|
48
|
+
__exportStar(require("./theia-toggle-bottom-indicator"), exports);
|
|
49
|
+
__exportStar(require("./theia-tree-node"), exports);
|
|
50
|
+
__exportStar(require("./theia-view"), exports);
|
|
51
|
+
__exportStar(require("./theia-workspace"), exports);
|
|
52
|
+
__exportStar(require("./util"), exports);
|
|
53
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import test, { Page } from '@playwright/test';
|
|
2
|
-
export declare let page: Page;
|
|
3
|
-
export default test;
|
|
1
|
+
import test, { Page } from '@playwright/test';
|
|
2
|
+
export declare let page: Page;
|
|
3
|
+
export default test;
|
|
4
4
|
//# sourceMappingURL=theia-fixture.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.page = void 0;
|
|
19
|
-
const test_1 = require("@playwright/test");
|
|
20
|
-
test_1.default.beforeAll(async ({ browser }) => {
|
|
21
|
-
exports.page = await browser.newPage();
|
|
22
|
-
});
|
|
23
|
-
exports.default = test_1.default;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.page = void 0;
|
|
19
|
+
const test_1 = require("@playwright/test");
|
|
20
|
+
test_1.default.beforeAll(async ({ browser }) => {
|
|
21
|
+
exports.page = await browser.newPage();
|
|
22
|
+
});
|
|
23
|
+
exports.default = test_1.default;
|
|
24
24
|
//# sourceMappingURL=theia-fixture.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=theia-app.test.d.ts.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const theia_app_1 = require("../theia-app");
|
|
19
|
-
const test_1 = require("@playwright/test");
|
|
20
|
-
const theia_fixture_1 = require("./fixtures/theia-fixture");
|
|
21
|
-
let app;
|
|
22
|
-
theia_fixture_1.default.describe('Theia Application', () => {
|
|
23
|
-
(0, theia_fixture_1.default)('should load', async () => {
|
|
24
|
-
app = await theia_app_1.TheiaApp.load(theia_fixture_1.page);
|
|
25
|
-
});
|
|
26
|
-
(0, theia_fixture_1.default)('should show main content panel', async () => {
|
|
27
|
-
(0, test_1.expect)(await app.isMainContentPanelVisible()).toBe(true);
|
|
28
|
-
});
|
|
29
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const theia_app_1 = require("../theia-app");
|
|
19
|
+
const test_1 = require("@playwright/test");
|
|
20
|
+
const theia_fixture_1 = require("./fixtures/theia-fixture");
|
|
21
|
+
let app;
|
|
22
|
+
theia_fixture_1.default.describe('Theia Application', () => {
|
|
23
|
+
(0, theia_fixture_1.default)('should load', async () => {
|
|
24
|
+
app = await theia_app_1.TheiaApp.load(theia_fixture_1.page);
|
|
25
|
+
});
|
|
26
|
+
(0, theia_fixture_1.default)('should show main content panel', async () => {
|
|
27
|
+
(0, test_1.expect)(await app.isMainContentPanelVisible()).toBe(true);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
30
|
//# sourceMappingURL=theia-app.test.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=theia-explorer-view.test.d.ts.map
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const test_1 = require("@playwright/test");
|
|
19
|
-
const theia_app_1 = require("../theia-app");
|
|
20
|
-
const theia_explorer_view_1 = require("../theia-explorer-view");
|
|
21
|
-
const theia_workspace_1 = require("../theia-workspace");
|
|
22
|
-
const theia_fixture_1 = require("./fixtures/theia-fixture");
|
|
23
|
-
let app;
|
|
24
|
-
let explorer;
|
|
25
|
-
theia_fixture_1.default.describe('Theia Explorer View', () => {
|
|
26
|
-
theia_fixture_1.default.beforeAll(async () => {
|
|
27
|
-
const ws = new theia_workspace_1.TheiaWorkspace(['src/tests/resources/sample-files1']);
|
|
28
|
-
app = await theia_app_1.TheiaApp.load(theia_fixture_1.page, ws);
|
|
29
|
-
explorer = await app.openView(theia_explorer_view_1.TheiaExplorerView);
|
|
30
|
-
});
|
|
31
|
-
(0, theia_fixture_1.default)('should be visible and active after being opened', async () => {
|
|
32
|
-
(0, test_1.expect)(await explorer.isTabVisible()).toBe(true);
|
|
33
|
-
(0, test_1.expect)(await explorer.isDisplayed()).toBe(true);
|
|
34
|
-
(0, test_1.expect)(await explorer.isActive()).toBe(true);
|
|
35
|
-
});
|
|
36
|
-
(0, theia_fixture_1.default)("should be opened at the left and have the title 'Explorer'", async () => {
|
|
37
|
-
(0, test_1.expect)(await explorer.isInSidePanel()).toBe(true);
|
|
38
|
-
(0, test_1.expect)(await explorer.side()).toBe('left');
|
|
39
|
-
(0, test_1.expect)(await explorer.title()).toBe('Explorer');
|
|
40
|
-
});
|
|
41
|
-
(0, theia_fixture_1.default)('should be possible to close and reopen it', async () => {
|
|
42
|
-
await explorer.close();
|
|
43
|
-
(0, test_1.expect)(await explorer.isTabVisible()).toBe(false);
|
|
44
|
-
explorer = await app.openView(theia_explorer_view_1.TheiaExplorerView);
|
|
45
|
-
(0, test_1.expect)(await explorer.isTabVisible()).toBe(true);
|
|
46
|
-
(0, test_1.expect)(await explorer.isDisplayed()).toBe(true);
|
|
47
|
-
(0, test_1.expect)(await explorer.isActive()).toBe(true);
|
|
48
|
-
});
|
|
49
|
-
(0, theia_fixture_1.default)('should show one folder named "sampleFolder" and one file named "sample.txt"', async () => {
|
|
50
|
-
await explorer.selectTreeNode('sampleFolder');
|
|
51
|
-
(0, test_1.expect)(await explorer.isTreeNodeSelected('sampleFolder')).toBe(true);
|
|
52
|
-
const fileStatElements = await explorer.visibleFileStatNodes(theia_explorer_view_1.DOT_FILES_FILTER);
|
|
53
|
-
(0, test_1.expect)(fileStatElements.length).toBe(2);
|
|
54
|
-
let file;
|
|
55
|
-
let folder;
|
|
56
|
-
if (await fileStatElements[0].isFolder()) {
|
|
57
|
-
folder = fileStatElements[0];
|
|
58
|
-
file = fileStatElements[1];
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
folder = fileStatElements[1];
|
|
62
|
-
file = fileStatElements[0];
|
|
63
|
-
}
|
|
64
|
-
(0, test_1.expect)(await folder.label()).toBe('sampleFolder');
|
|
65
|
-
(0, test_1.expect)(await folder.isFile()).toBe(false);
|
|
66
|
-
(0, test_1.expect)(await folder.isFolder()).toBe(true);
|
|
67
|
-
(0, test_1.expect)(await file.label()).toBe('sample.txt');
|
|
68
|
-
(0, test_1.expect)(await file.isFolder()).toBe(false);
|
|
69
|
-
(0, test_1.expect)(await file.isFile()).toBe(true);
|
|
70
|
-
});
|
|
71
|
-
(0, theia_fixture_1.default)('should provide file stat node by single path fragment "sample.txt"', async () => {
|
|
72
|
-
const file = await explorer.getFileStatNodeByLabel('sample.txt');
|
|
73
|
-
(0, test_1.expect)(await file.label()).toBe('sample.txt');
|
|
74
|
-
(0, test_1.expect)(await file.isFolder()).toBe(false);
|
|
75
|
-
(0, test_1.expect)(await file.isFile()).toBe(true);
|
|
76
|
-
});
|
|
77
|
-
(0, theia_fixture_1.default)('should provide file stat nodes that can define whether they are collapsed or not and that can be expanded', async () => {
|
|
78
|
-
const file = await explorer.getFileStatNodeByLabel('sample.txt');
|
|
79
|
-
(0, test_1.expect)(await file.isCollapsed()).toBe(false);
|
|
80
|
-
const folder = await explorer.getFileStatNodeByLabel('sampleFolder');
|
|
81
|
-
(0, test_1.expect)(await folder.isCollapsed()).toBe(true);
|
|
82
|
-
await folder.expand();
|
|
83
|
-
(0, test_1.expect)(await folder.isCollapsed()).toBe(false);
|
|
84
|
-
});
|
|
85
|
-
(0, theia_fixture_1.default)('should provide file stat node by path "sampleFolder/sampleFolder1/sampleFolder1-1/sampleFile1-1-1.txt"', async () => {
|
|
86
|
-
const file = await explorer.fileStatNode('sampleFolder/sampleFolder1/sampleFolder1-1/sampleFile1-1-1.txt');
|
|
87
|
-
if (!file) {
|
|
88
|
-
throw Error('File stat node could not be retrieved by path');
|
|
89
|
-
}
|
|
90
|
-
(0, test_1.expect)(await file.label()).toBe('sampleFile1-1-1.txt');
|
|
91
|
-
});
|
|
92
|
-
(0, theia_fixture_1.default)('should open context menu on "sample.txt"', async () => {
|
|
93
|
-
const file = await explorer.getFileStatNodeByLabel('sample.txt');
|
|
94
|
-
const menu = await file.openContextMenu();
|
|
95
|
-
(0, test_1.expect)(await menu.isOpen()).toBe(true);
|
|
96
|
-
const menuItems = await menu.visibleMenuItems();
|
|
97
|
-
(0, test_1.expect)(menuItems).toContain('Open');
|
|
98
|
-
(0, test_1.expect)(menuItems).toContain('Delete');
|
|
99
|
-
(0, test_1.expect)(menuItems).toContain('Download');
|
|
100
|
-
await menu.close();
|
|
101
|
-
(0, test_1.expect)(await menu.isOpen()).toBe(false);
|
|
102
|
-
});
|
|
103
|
-
(0, theia_fixture_1.default)('should rename "sample.txt"', async () => {
|
|
104
|
-
await explorer.renameNode('sample.txt', 'sample-new.txt');
|
|
105
|
-
(0, test_1.expect)(await explorer.existsFileNode('sample-new.txt')).toBe(true);
|
|
106
|
-
await explorer.renameNode('sample-new.txt', 'sample.txt');
|
|
107
|
-
(0, test_1.expect)(await explorer.existsFileNode('sample.txt')).toBe(true);
|
|
108
|
-
});
|
|
109
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const test_1 = require("@playwright/test");
|
|
19
|
+
const theia_app_1 = require("../theia-app");
|
|
20
|
+
const theia_explorer_view_1 = require("../theia-explorer-view");
|
|
21
|
+
const theia_workspace_1 = require("../theia-workspace");
|
|
22
|
+
const theia_fixture_1 = require("./fixtures/theia-fixture");
|
|
23
|
+
let app;
|
|
24
|
+
let explorer;
|
|
25
|
+
theia_fixture_1.default.describe('Theia Explorer View', () => {
|
|
26
|
+
theia_fixture_1.default.beforeAll(async () => {
|
|
27
|
+
const ws = new theia_workspace_1.TheiaWorkspace(['src/tests/resources/sample-files1']);
|
|
28
|
+
app = await theia_app_1.TheiaApp.load(theia_fixture_1.page, ws);
|
|
29
|
+
explorer = await app.openView(theia_explorer_view_1.TheiaExplorerView);
|
|
30
|
+
});
|
|
31
|
+
(0, theia_fixture_1.default)('should be visible and active after being opened', async () => {
|
|
32
|
+
(0, test_1.expect)(await explorer.isTabVisible()).toBe(true);
|
|
33
|
+
(0, test_1.expect)(await explorer.isDisplayed()).toBe(true);
|
|
34
|
+
(0, test_1.expect)(await explorer.isActive()).toBe(true);
|
|
35
|
+
});
|
|
36
|
+
(0, theia_fixture_1.default)("should be opened at the left and have the title 'Explorer'", async () => {
|
|
37
|
+
(0, test_1.expect)(await explorer.isInSidePanel()).toBe(true);
|
|
38
|
+
(0, test_1.expect)(await explorer.side()).toBe('left');
|
|
39
|
+
(0, test_1.expect)(await explorer.title()).toBe('Explorer');
|
|
40
|
+
});
|
|
41
|
+
(0, theia_fixture_1.default)('should be possible to close and reopen it', async () => {
|
|
42
|
+
await explorer.close();
|
|
43
|
+
(0, test_1.expect)(await explorer.isTabVisible()).toBe(false);
|
|
44
|
+
explorer = await app.openView(theia_explorer_view_1.TheiaExplorerView);
|
|
45
|
+
(0, test_1.expect)(await explorer.isTabVisible()).toBe(true);
|
|
46
|
+
(0, test_1.expect)(await explorer.isDisplayed()).toBe(true);
|
|
47
|
+
(0, test_1.expect)(await explorer.isActive()).toBe(true);
|
|
48
|
+
});
|
|
49
|
+
(0, theia_fixture_1.default)('should show one folder named "sampleFolder" and one file named "sample.txt"', async () => {
|
|
50
|
+
await explorer.selectTreeNode('sampleFolder');
|
|
51
|
+
(0, test_1.expect)(await explorer.isTreeNodeSelected('sampleFolder')).toBe(true);
|
|
52
|
+
const fileStatElements = await explorer.visibleFileStatNodes(theia_explorer_view_1.DOT_FILES_FILTER);
|
|
53
|
+
(0, test_1.expect)(fileStatElements.length).toBe(2);
|
|
54
|
+
let file;
|
|
55
|
+
let folder;
|
|
56
|
+
if (await fileStatElements[0].isFolder()) {
|
|
57
|
+
folder = fileStatElements[0];
|
|
58
|
+
file = fileStatElements[1];
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
folder = fileStatElements[1];
|
|
62
|
+
file = fileStatElements[0];
|
|
63
|
+
}
|
|
64
|
+
(0, test_1.expect)(await folder.label()).toBe('sampleFolder');
|
|
65
|
+
(0, test_1.expect)(await folder.isFile()).toBe(false);
|
|
66
|
+
(0, test_1.expect)(await folder.isFolder()).toBe(true);
|
|
67
|
+
(0, test_1.expect)(await file.label()).toBe('sample.txt');
|
|
68
|
+
(0, test_1.expect)(await file.isFolder()).toBe(false);
|
|
69
|
+
(0, test_1.expect)(await file.isFile()).toBe(true);
|
|
70
|
+
});
|
|
71
|
+
(0, theia_fixture_1.default)('should provide file stat node by single path fragment "sample.txt"', async () => {
|
|
72
|
+
const file = await explorer.getFileStatNodeByLabel('sample.txt');
|
|
73
|
+
(0, test_1.expect)(await file.label()).toBe('sample.txt');
|
|
74
|
+
(0, test_1.expect)(await file.isFolder()).toBe(false);
|
|
75
|
+
(0, test_1.expect)(await file.isFile()).toBe(true);
|
|
76
|
+
});
|
|
77
|
+
(0, theia_fixture_1.default)('should provide file stat nodes that can define whether they are collapsed or not and that can be expanded', async () => {
|
|
78
|
+
const file = await explorer.getFileStatNodeByLabel('sample.txt');
|
|
79
|
+
(0, test_1.expect)(await file.isCollapsed()).toBe(false);
|
|
80
|
+
const folder = await explorer.getFileStatNodeByLabel('sampleFolder');
|
|
81
|
+
(0, test_1.expect)(await folder.isCollapsed()).toBe(true);
|
|
82
|
+
await folder.expand();
|
|
83
|
+
(0, test_1.expect)(await folder.isCollapsed()).toBe(false);
|
|
84
|
+
});
|
|
85
|
+
(0, theia_fixture_1.default)('should provide file stat node by path "sampleFolder/sampleFolder1/sampleFolder1-1/sampleFile1-1-1.txt"', async () => {
|
|
86
|
+
const file = await explorer.fileStatNode('sampleFolder/sampleFolder1/sampleFolder1-1/sampleFile1-1-1.txt');
|
|
87
|
+
if (!file) {
|
|
88
|
+
throw Error('File stat node could not be retrieved by path');
|
|
89
|
+
}
|
|
90
|
+
(0, test_1.expect)(await file.label()).toBe('sampleFile1-1-1.txt');
|
|
91
|
+
});
|
|
92
|
+
(0, theia_fixture_1.default)('should open context menu on "sample.txt"', async () => {
|
|
93
|
+
const file = await explorer.getFileStatNodeByLabel('sample.txt');
|
|
94
|
+
const menu = await file.openContextMenu();
|
|
95
|
+
(0, test_1.expect)(await menu.isOpen()).toBe(true);
|
|
96
|
+
const menuItems = await menu.visibleMenuItems();
|
|
97
|
+
(0, test_1.expect)(menuItems).toContain('Open');
|
|
98
|
+
(0, test_1.expect)(menuItems).toContain('Delete');
|
|
99
|
+
(0, test_1.expect)(menuItems).toContain('Download');
|
|
100
|
+
await menu.close();
|
|
101
|
+
(0, test_1.expect)(await menu.isOpen()).toBe(false);
|
|
102
|
+
});
|
|
103
|
+
(0, theia_fixture_1.default)('should rename "sample.txt"', async () => {
|
|
104
|
+
await explorer.renameNode('sample.txt', 'sample-new.txt');
|
|
105
|
+
(0, test_1.expect)(await explorer.existsFileNode('sample-new.txt')).toBe(true);
|
|
106
|
+
await explorer.renameNode('sample-new.txt', 'sample.txt');
|
|
107
|
+
(0, test_1.expect)(await explorer.existsFileNode('sample.txt')).toBe(true);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
110
|
//# sourceMappingURL=theia-explorer-view.test.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=theia-main-menu.test.d.ts.map
|