Skip to content

Commit ac6aece

Browse files
committed
fix e2e
1 parent 17a580f commit ac6aece

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

apps/remix-ide-e2e/src/tests/terminal.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,21 @@ module.exports = {
208208
browser
209209
.clickLaunchIcon('udapp')
210210
.switchEnvironment('External Http Provider')
211-
.waitForElementPresent('[data-id="basic-http-provider-modal-footer-ok-react"]')
211+
.waitForElementPresent('[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]')
212+
.waitForElementVisible('[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]')
213+
.pause(1000)
212214
.execute(() => {
213215
(document.querySelector('*[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]') as any).focus()
214216
}, [], () => {})
215-
.setValue('[data-id="modalDialogCustomPromp"]', 'https://remix-goerli.ethdevops.io')
217+
.clearValue('[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]')
218+
.setValue('[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]', 'https://remix-goerli.ethdevops.io')
216219
.modalFooterOKClick('basic-http-provider')
220+
.pause(1000)
217221
.clickLaunchIcon('filePanel')
218222
.openFile('README.txt')
219223
.addFile('scripts/log_tx_block.js', { content: scriptBlockAndTransaction } )
220224
.pause(1000)
221-
.executeScriptInTerminal('remix.execute(\'scripts/log_tx_block.js\')')
225+
.executeScript('remix.execute(\'scripts/log_tx_block.js\')')
222226
.pause(10000)
223227
// check if the input of the transaction is being logged (web3 call)
224228
.journalChildIncludes('0x775526410000000000000000000000000000000000000000000000000000000000000060464c0335b2f1609abd9de25141c0a3b49db516fc7375970dc737c32b986e88e3000000000000000000000000000000000000000000000000000000000000039e000000000000000000000000000000000000000000000000000000000000000602926b30b10e7a514d92bc71e085f5bff2687fac2856ae43ef7621bf1756fa370516d310bec5727543089be9a4d5f68471174ee528e95a2520b0ca36c2b6c6eb0000000000000000000000000000000000000000000000000000000000046f49036f5e4ea4dd042801c8841e3db8e654124305da0f11824fc1db60c405dbb39f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000')

0 commit comments

Comments
 (0)