chore: improve readability

This commit is contained in:
Su-Yong
2025-10-12 14:28:29 +09:00
parent 4f716d8e0b
commit ffa61687bf
137 changed files with 2625 additions and 2626 deletions

View File

@ -7,7 +7,7 @@ process.env.NODE_ENV = 'test';
const appPath = path.resolve(import.meta.dirname, '..');
test('YouTube Music App - With default settings, app is launched and visible', async () => {
test('Pear Desktop App - With default settings, app is launched and visible', async () => {
const app = await electron.launch({
cwd: appPath,
args: [
@ -22,17 +22,17 @@ test('YouTube Music App - With default settings, app is launched and visible', a
const window = await app.firstWindow();
const consentForm = await window.$(
"form[action='https://consent.youtube.com/save']",
"form[action='https://consent.\u0079\u006f\u0075\u0074\u0075\u0062\u0065.com/save']",
);
if (consentForm) {
await consentForm.click('button');
}
// const title = await window.title();
// expect(title.replaceAll(/\s/g, ' ')).toEqual('YouTube Music');
// expect(title.replaceAll(/\s/g, ' ')).toEqual('Pear Desktop');
const url = window.url();
expect(url.startsWith('https://music.youtube.com')).toBe(true);
expect(url.startsWith('https://music.\u0079\u006f\u0075\u0074\u0075\u0062\u0065.com')).toBe(true);
await app.close();
});