From 432b5c3cec49a8c565000b355a6743152f3479cc Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 5 Apr 2023 13:16:21 +0200 Subject: [PATCH] add more checks --- apps/remix-ide-e2e/src/tests/vyper_api.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/vyper_api.test.ts b/apps/remix-ide-e2e/src/tests/vyper_api.test.ts index 68f29dbc2c..817b65cd14 100644 --- a/apps/remix-ide-e2e/src/tests/vyper_api.test.ts +++ b/apps/remix-ide-e2e/src/tests/vyper_api.test.ts @@ -75,6 +75,19 @@ module.exports = { // @ts-ignore .frame(0) .click('[data-id="compile"]') + .isVisible({ + selector: '[data-id="copy-abi"]', + timeout: 4000, + abortOnFailure: false, + suppressNotFoundErrors: true + }, (okVisible) => { + if (okVisible.value === null) { + console.log('retrying compilation...') + browser.click('[data-id="compile"]').waitForElementVisible('[data-id="copy-abi"]') + } else{ + browser.assert.ok(okVisible.value === true, 'ABI should be visible') + } + }) .frameParent() .clickLaunchIcon('udapp') .createContract('')