We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd49283 commit 301eb6cCopy full SHA for 301eb6c
tests/electron/env_spec.js
@@ -11,8 +11,9 @@ describe("Electron app environment", () => {
11
});
12
13
it("should open browserwindow", async () => {
14
- const module = await helpers.getElement("#module_0_helloworld");
15
- await expect(module.textContent()).resolves.toContain("Test Display Header");
+ // Wait for module content to be rendered, not just the module wrapper
+ const moduleContent = await helpers.getElement("#module_0_helloworld .module-content");
16
+ await expect(moduleContent.textContent()).resolves.toContain("Test Display Header");
17
expect(global.electronApp.windows()).toHaveLength(1);
18
19
0 commit comments