diff --git a/apps/remix-ide-e2e/src/tests/vm_state.test.ts b/apps/remix-ide-e2e/src/tests/vm_state.test.ts new file mode 100644 index 00000000000..827252856d4 --- /dev/null +++ b/apps/remix-ide-e2e/src/tests/vm_state.test.ts @@ -0,0 +1,26 @@ +'use strict' +import { NightwatchBrowser } from 'nightwatch' +import init from '../helpers/init' + +declare global { + interface Window { testplugin: { name: string, url: string }; } +} + +const tests = { + '@disabled': true, + before: function (browser: NightwatchBrowser, done: VoidFunction) { + init(browser, done, null) + }, + + 'Should show fork and delete VM state icons #group1': function (browser: NightwatchBrowser) { + browser + .clickLaunchIcon('udapp') + .assert.elementPresent('*[data-id="selected-provider-vm-cancun"]') + .assert.elementPresent('*[data-id="fork-state-icon"]') + .assert.elementPresent('*[data-id="delete-state-icon"]') + }, +} + +module.exports = { + ...tests +}; diff --git a/libs/remix-ui/run-tab/src/lib/components/environment.tsx b/libs/remix-ui/run-tab/src/lib/components/environment.tsx index 1783e303859..4e62973efba 100644 --- a/libs/remix-ui/run-tab/src/lib/components/environment.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/environment.tsx @@ -128,10 +128,10 @@ export function EnvironmentUI(props: EnvironmentProps) { { currentProvider && currentProvider.isVM && isSaveEvmStateChecked && }> - + } { currentProvider && currentProvider.isVM && isSaveEvmStateChecked && }> - + }