mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix(test): Add a test to check the title
It failed because of @cliqz/adblocker-electron. Check see this issue: https://github.com/ghostery/adblocker/issues/3462
This commit is contained in:
@ -30,6 +30,9 @@ test('YouTube Music App - With default settings, app is launched and visible', a
|
|||||||
await consentForm.click('button');
|
await consentForm.click('button');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const title = await window.title();
|
||||||
|
expect(title.replaceAll(/\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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user