pull/5102/head
bunsenstraat 3 months ago
parent 8a6be97e92
commit e8fe3424f5
  1. 1
      apps/remix-ide-e2e/src/commands/renamePath.ts
  2. 2
      apps/remix-ide-e2e/src/tests/remixd.test.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
}

@ -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)

Loading…
Cancel
Save