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 692b6b2 commit e84f045Copy full SHA for e84f045
tests/index.test.js
@@ -0,0 +1,20 @@
1
+describe("YouTube Music App", () => {
2
+ const app = global.__APP__;
3
+
4
+ test("With default settings, app is launched and visible", async () => {
5
+ expect(app.isRunning()).toBe(true);
6
7
+ const win = app.browserWindow;
8
9
+ const isVisible = await win.isVisible();
10
+ expect(isVisible).toBe(true);
11
12
+ const { width, height } = await win.getBounds();
13
+ expect(width).toBeGreaterThan(0);
14
+ expect(height).toBeGreaterThan(0);
15
16
+ const { client } = app;
17
+ const title = await client.getTitle();
18
+ expect(title).toEqual("YouTube Music");
19
+ });
20
+});
0 commit comments