diff --git a/apps/remix-ide-e2e/src/commands/renamePath.ts b/apps/remix-ide-e2e/src/commands/renamePath.ts index 7ac7606631..e87df0cb95 100644 --- a/apps/remix-ide-e2e/src/commands/renamePath.ts +++ b/apps/remix-ide-e2e/src/commands/renamePath.ts @@ -41,7 +41,6 @@ function renamePath(browser: NightwatchBrowser, path: string, newFileName: strin .waitForElementPresent('[data-path="' + renamedPath + '"]'); } catch (error) { console.error('An error occurred:', error.message); - // Handle error (e.g., take a screenshot, log the error, etc.) } finally { done(); // Ensure done is called even if there's an error } diff --git a/apps/remix-ide-e2e/src/tests/remixd.test.ts b/apps/remix-ide-e2e/src/tests/remixd.test.ts index b6be54cb5f..78e98a1eef 100644 --- a/apps/remix-ide-e2e/src/tests/remixd.test.ts +++ b/apps/remix-ide-e2e/src/tests/remixd.test.ts @@ -366,7 +366,7 @@ function runTests(browser: NightwatchBrowser, done: any) { .waitForElementVisible('[data-path="folder1"]') .waitForElementVisible('[data-path="folder1/contract_' + browserName + '.sol"]') .click('[data-path="folder1/contract_' + browserName + '.sol"]') // rename a file and check - .pause() + .pause(1000) .saveScreenshot('./reports/screenshots/remixd1.png') .renamePath('folder1/contract_' + browserName + '.sol', 'renamed_contract_' + browserName, 'folder1/renamed_contract_' + browserName + '.sol') .pause(1000)