From f96fdd26d210c62f2abfc3993d30526e74c4bf3b Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 8 Mar 2023 12:17:57 +0100 Subject: [PATCH] check editor value --- apps/remix-ide-e2e/src/commands/addFile.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index 5ea86c5347..5cc8146650 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -55,6 +55,11 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo timeout: 60000 }) .setEditorValue(content.content) + .getEditorValue((result) => { + if(result != content.content) { + browser.setEditorValue(content.content) + } + }) .perform(function () { done() })