From e7d2d04f5a9be32616bb3bd8b8c0f985c6278655 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 8 Oct 2023 01:02:29 +0900 Subject: [PATCH] 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 --- tests/index.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/index.test.js b/tests/index.test.js index 5a84fdff..acead456 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -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);