fix e2e test

pull/5370/head
yann300 4 years ago
parent ba744311ba
commit 2378304cd0
  1. 2
      apps/remix-ide-e2e/src/tests/workspace.test.ts
  2. 4
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -18,6 +18,8 @@ module.exports = {
'Editor should be focused on the 3_Ballot.sol': function (browser: NightwatchBrowser) {
browser
.pause(5000)
.refresh()
.pause(2000)
.getEditorValue((content) => {
browser.assert.ok(content.indexOf('contract Ballot {') !== -1, 'content doesn\'t include Ballot contract')
})

@ -259,7 +259,7 @@ export const Workspace = (props: WorkspaceProps) => {
return (
<>
<span>{ state.modal.message }</span>
<input placeholder={`workspace_${Date.now()}`} ref={workspaceCreateInput} className="form-control" />
<input data-id="modalDialogCustomPromptText" placeholder={`workspace_${Date.now()}`} ref={workspaceCreateInput} className="form-control" />
</>
)
}
@ -268,7 +268,7 @@ export const Workspace = (props: WorkspaceProps) => {
return (
<>
<span>{ state.modal.message }</span>
<input placeholder={ state.currentWorkspace } ref={workspaceRenameInput} className="form-control" />
<input data-id="modalDialogCustomPromptText" placeholder={ state.currentWorkspace } ref={workspaceRenameInput} className="form-control" />
</>
)
}

Loading…
Cancel
Save