From c1c5f8d1a3e2bf7607e7ac2beaeb29e22c8d1843 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 14 Mar 2024 11:11:59 +0100 Subject: [PATCH] gist test --- apps/remixdesktop/test/tests/app/gist.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/remixdesktop/test/tests/app/gist.test.ts b/apps/remixdesktop/test/tests/app/gist.test.ts index bff1391781..090ba745b4 100644 --- a/apps/remixdesktop/test/tests/app/gist.test.ts +++ b/apps/remixdesktop/test/tests/app/gist.test.ts @@ -1,6 +1,6 @@ import { NightwatchBrowser } from 'nightwatch' -const gist_id = 'a4af87f9ae096a01c7819e75b32d1b72' +const gist_id = '02a847917a6a7ecaf4a7e0d4e68715bf' module.exports = { before: function (browser: NightwatchBrowser, done: VoidFunction) { done() @@ -16,6 +16,12 @@ module.exports = { }) .setValue('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]', gist_id) .modalFooterOKClick('gisthandler') - //.pause() + .pause(3000) + .windowHandles(function (result) { + console.log(result.value) + browser.switchWindow(result.value[1]) + .waitForElementVisible('*[data-id="treeViewDivtreeViewItemREADME.txt"]') + }) + .end() } } \ No newline at end of file