From 3d925f4d132ccd7c50c41eebea315e6fcbe739ee Mon Sep 17 00:00:00 2001 From: Priyansh Garg Date: Wed, 31 Jul 2024 22:14:54 +0530 Subject: [PATCH] Modify testcase name and add comment in test. --- tests/testInstalledExtension.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testInstalledExtension.js b/tests/testInstalledExtension.js index a83fc83..3087113 100644 --- a/tests/testInstalledExtension.js +++ b/tests/testInstalledExtension.js @@ -3,7 +3,8 @@ describe('test Nightwatch Inspector extension in DevTools', function() { browser.navigateTo('https://nightwatchjs.org'); }) - it('opens devtools, switches to extension tab and checks title', async function() { + it('switches to devtools window, opens extension tab and checks title', async function() { + // get all targets (contexts) we can possibly switch to const targets = await browser.driver.sendAndGetDevToolsCommand('Target.getTargets', {}); const devToolsTarget = targets.targetInfos.find(target => {