@eclipse-glsp/playwright-theia 2.9.0-next.13 → 2.9.0-next.7

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.
@@ -21,6 +21,11 @@ an IDE context:
21
21
  Suites in `@eclipse-glsp-examples/workflow-e2e` branch on these capabilities, so a Theia run picks up
22
22
  the context-menu and marker-navigation cases automatically — no per-suite overrides are needed.
23
23
 
24
+ The loader creates a page outside Playwright's test fixtures. `TheiaIntegration.close()` closes
25
+ that page (and its browser context) during integration teardown rather than leaving it alive until
26
+ the worker exits. Failure inside the loader before it returns the application is not covered by
27
+ this teardown and requires cleanup support in the loader itself.
28
+
24
29
  ## Options
25
30
 
26
31
  `defineTheiaIntegration()` is the only supported way to build the options: it fills in the
@@ -33,6 +33,11 @@ export declare class TheiaIntegration extends Integration implements ContextMenu
33
33
  * Theia rebinds the marker navigation keys, so it contributes its own navigator.
34
34
  */
35
35
  createMarkerNavigator(app: GLSPSemanticApp): MarkerNavigator;
36
+ /**
37
+ * Closes the page allocated by {@link TheiaAppLoader}, which is not managed by Playwright's
38
+ * test fixtures. For browser applications, closing this page also disposes of its context.
39
+ */
40
+ close(): Promise<void>;
36
41
  protected launch(): Promise<void>;
37
42
  protected afterLaunch(): Promise<void>;
38
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"theia.integration.d.ts","sourceRoot":"","sources":["../../src/integration/theia.integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,KAAK,EACR,0BAA0B,EAC1B,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,0BAA0B,EAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAwB,WAAW,EAAoB,MAAM,0BAA0B,CAAC;AAEvH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;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qBAAa,gBACT,SAAQ,WACR,YAAW,sBAAsB,EAAE,0BAA0B,EAAE,0BAA0B;IAgBrF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,uBAAuB;IAdvD,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEjC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAwB;IAEnE,IAAa,IAAI,IAAI,IAAI,CAExB;IAED,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED,YACI,IAAI,EAAE,eAAe,EACF,OAAO,EAAE,uBAAuB,EAGtD;IAED;;OAEG;IACH,qBAAqB,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAE3D;IAED;;;OAGG;IACY,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAEpC;IAED,UAAyB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAI/C;IAED,UAAyB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAWpD;CACJ;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,GAAG,uBAAuB,CAM9F"}
@@ -44,6 +44,13 @@ class TheiaIntegration extends playwright_2.Integration {
44
44
  createMarkerNavigator(app) {
45
45
  return new theia_keybindings_1.TheiaMarkerNavigator(app);
46
46
  }
47
+ /**
48
+ * Closes the page allocated by {@link TheiaAppLoader}, which is not managed by Playwright's
49
+ * test fixtures. For browser applications, closing this page also disposes of its context.
50
+ */
51
+ async close() {
52
+ await this.theiaApp?.page.close();
53
+ }
47
54
  async launch() {
48
55
  const ws = new playwright_1.TheiaWorkspace(this.options.workspace ? [this.options.workspace] : undefined);
49
56
  this.theiaApp = await playwright_1.TheiaAppLoader.load(this.args, ws, theia_glsp_app_po_1.TheiaGLSPApp);
@@ -1 +1 @@
1
- {"version":3,"file":"theia.integration.js","sourceRoot":"","sources":["../../src/integration/theia.integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;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b,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC;KAC7E,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp/playwright-theia",
3
- "version": "2.9.0-next.13",
3
+ "version": "2.9.0-next.7",
4
4
  "description": "Theia integration for the GLSP Playwright testing framework",
5
5
  "keywords": [
6
6
  "diagram",
@@ -64,6 +64,14 @@ export class TheiaIntegration
64
64
  return new TheiaMarkerNavigator(app);
65
65
  }
66
66
 
67
+ /**
68
+ * Closes the page allocated by {@link TheiaAppLoader}, which is not managed by Playwright's
69
+ * test fixtures. For browser applications, closing this page also disposes of its context.
70
+ */
71
+ override async close(): Promise<void> {
72
+ await this.theiaApp?.page.close();
73
+ }
74
+
67
75
  protected override async launch(): Promise<void> {
68
76
  const ws = new TheiaWorkspace(this.options.workspace ? [this.options.workspace] : undefined);
69
77
  this.theiaApp = await TheiaAppLoader.load(this.args, ws, TheiaGLSPApp as any);