mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-09 17:51:46 +00:00
Update dev dependencies
This commit is contained in:
12
package.json
12
package.json
@ -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,
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user