From 36b40129d533e03df350e10906aa680977f8cd5e Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 10:55:09 +0200 Subject: [PATCH] use this --- .../src/commands/connectToExternalHttpProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/connectToExternalHttpProvider.ts b/apps/remix-ide-e2e/src/commands/connectToExternalHttpProvider.ts index 2d4e7fb35f..e7a2595d05 100644 --- a/apps/remix-ide-e2e/src/commands/connectToExternalHttpProvider.ts +++ b/apps/remix-ide-e2e/src/commands/connectToExternalHttpProvider.ts @@ -5,9 +5,9 @@ class ConnectToExternalHttpProvider extends EventEmitter { command(this: NightwatchBrowser, url: string, identifier: string): NightwatchBrowser { this.api.element('xpath', `//*[@class='udapp_environment' and contains(.,'${identifier}')]`, (result) => { - if (result.status as any === -1 ) { + if (result.status as any === -1) { console.log("No connection to external provider found. Adding one.", url) - browser + this .click({ locateStrategy: 'css selector', selector: '[data-id="basic-http-provider-modal-footer-ok-react"]',