Change data-id for react modal

pull/668/head
ioedeveloper 4 years ago
parent 629544a0fa
commit 670329ddd4
  1. 3
      apps/remix-ide-e2e/src/tests/publishContract.test.ts
  2. 8
      libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx

@ -45,8 +45,6 @@ module.exports = {
browser
.waitForElementVisible('#icon-panel')
.clickLaunchIcon('fileExplorers')
// .click('*[data-id="treeViewLibrowser/contracts"]')
// .click('*[data-id="treeViewLibrowser/contracts"]')
.openFile('browser/contracts/1_Storage.sol')
.clickLaunchIcon('udapp')
.waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')
@ -65,7 +63,6 @@ module.exports = {
.refresh()
.waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/contracts"]')
.click('[data-id="treeViewLitreeViewItembrowser/contracts"]')
// .click('*[data-id="treeViewLibrowser/contracts"]')
.openFile('browser/contracts/1_Storage.sol')
.clickLaunchIcon('udapp')
.waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')

@ -42,7 +42,7 @@ export const ModalDialog = (props: ModalDialogProps) => {
return (
<div
data-id="modalDialogContainer"
data-id="modalDialogContainer-react"
data-backdrop="static"
data-keyboard="false"
className='modal'
@ -61,7 +61,7 @@ export const ModalDialog = (props: ModalDialogProps) => {
onKeyDown={({ keyCode }) => { modalKeyEvent(keyCode) }}
>
<div className="modal-header">
<h6 className="modal-title" data-id="modalDialogModalTitle">
<h6 className="modal-title" data-id="modalDialogModalTitle-react">
{props.title && props.title}
</h6>
{!props.showCancelIcon &&
@ -70,10 +70,10 @@ export const ModalDialog = (props: ModalDialogProps) => {
</span>
}
</div>
<div className="modal-body text-break remixModalBody" data-id="modalDialogModalBody">
<div className="modal-body text-break remixModalBody" data-id="modalDialogModalBody-react">
{ props.children ? props.children : props.message }
</div>
<div className="modal-footer" data-id="modalDialogModalFooter">
<div className="modal-footer" data-id="modalDialogModalFooter-react">
{/* todo add autofocus ^^ */}
{ props.ok &&
<span

Loading…
Cancel
Save