Skip to content

Commit

Permalink
Merge pull request #976 from th-ch/th-ch/update-dev-deps
Browse files Browse the repository at this point in the history
Update dev dependencies
  • Loading branch information
th-ch authored Jan 14, 2023
2 parents acdff69 + 0c53f7f commit 3a822f6
Show file tree
Hide file tree
Showing 3 changed files with 1,156 additions and 1,423 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,20 @@
"ytpl": "^2.3.0"
},
"devDependencies": {
"@playwright/test": "^1.25.1",
"@playwright/test": "^1.29.2",
"auto-changelog": "^2.4.0",
"del-cli": "^5.0.0",
"electron": "^22.0.2",
"electron-builder": "^23.0.3",
"electron-devtools-installer": "^3.1.1",
"electron-builder": "^23.6.0",
"electron-devtools-installer": "^3.2.0",
"electron-icon-maker": "0.0.5",
"playwright": "^1.25.1",
"xo": "^0.45.0"
"playwright": "^1.29.2",
"xo": "^0.53.1"
},
"resolutions": {
"glob-parent": "5.1.2",
"minimist": "1.2.7",
"yargs-parser": "18.1.3"
"yargs-parser": "21.1.1"
},
"auto-changelog": {
"hideCredit": true,
Expand Down
13 changes: 11 additions & 2 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,27 @@ const appPath = path.resolve(__dirname, "..");

test("YouTube Music App - With default settings, app is launched and visible", async () => {
const app = await electron.launch({
cwd: appPath,
args: [
appPath,
"--no-sandbox",
"--disable-gpu",
"--whitelisted-ips=",
"--disable-dev-shm-usage",
appPath,
],
});

const window = await app.firstWindow();

const consentForm = await window.$(
"form[action='https://consent.youtube.com/save']"
);
if (consentForm) {
await consentForm.click("button");
}

const title = await window.title();
expect(title).toEqual("YouTube Music");
expect(title.replace(/\s/g, " ")).toEqual("YouTube Music");

const url = window.url();
expect(url.startsWith("https://music.youtube.com")).toBe(true);
Expand Down
Loading

0 comments on commit 3a822f6

Please sign in to comment.