Update dev dependencies

This commit is contained in:
TC
2023-01-14 17:11:18 +01:00
parent acdff69919
commit 0c53f7ffeb
3 changed files with 1166 additions and 1433 deletions

View File

@ -124,20 +124,20 @@
"ytpl": "^2.3.0" "ytpl": "^2.3.0"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.25.1", "@playwright/test": "^1.29.2",
"auto-changelog": "^2.4.0", "auto-changelog": "^2.4.0",
"del-cli": "^5.0.0", "del-cli": "^5.0.0",
"electron": "^22.0.2", "electron": "^22.0.2",
"electron-builder": "^23.0.3", "electron-builder": "^23.6.0",
"electron-devtools-installer": "^3.1.1", "electron-devtools-installer": "^3.2.0",
"electron-icon-maker": "0.0.5", "electron-icon-maker": "0.0.5",
"playwright": "^1.25.1", "playwright": "^1.29.2",
"xo": "^0.45.0" "xo": "^0.53.1"
}, },
"resolutions": { "resolutions": {
"glob-parent": "5.1.2", "glob-parent": "5.1.2",
"minimist": "1.2.7", "minimist": "1.2.7",
"yargs-parser": "18.1.3" "yargs-parser": "21.1.1"
}, },
"auto-changelog": { "auto-changelog": {
"hideCredit": true, "hideCredit": true,

View File

@ -9,18 +9,27 @@ const appPath = path.resolve(__dirname, "..");
test("YouTube Music App - With default settings, app is launched and visible", async () => { test("YouTube Music App - With default settings, app is launched and visible", async () => {
const app = await electron.launch({ const app = await electron.launch({
cwd: appPath,
args: [ args: [
appPath,
"--no-sandbox", "--no-sandbox",
"--disable-gpu", "--disable-gpu",
"--whitelisted-ips=", "--whitelisted-ips=",
"--disable-dev-shm-usage", "--disable-dev-shm-usage",
appPath,
], ],
}); });
const window = await app.firstWindow(); 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(); const title = await window.title();
expect(title).toEqual("YouTube Music"); expect(title.replace(/\s/g, " ")).toEqual("YouTube Music");
const url = window.url(); const url = window.url();
expect(url.startsWith("https://music.youtube.com")).toBe(true); expect(url.startsWith("https://music.youtube.com")).toBe(true);

2574
yarn.lock

File diff suppressed because it is too large Load Diff