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:
JellyBrick
2023-10-08 01:02:29 +09:00
parent f4319ebc6b
commit e7d2d04f5a

View File

@ -30,6 +30,9 @@ test('YouTube Music App - With default settings, app is launched and visible', a
await consentForm.click('button');
}
const title = await window.title();
expect(title.replaceAll(/\s/g, ' ')).toEqual('YouTube Music');
const url = window.url();
expect(url.startsWith('https://music.youtube.com')).toBe(true);