From 144721e91016b723386b6fdbdcbf376f1b62db79 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 16 Sep 2022 13:08:03 +0200 Subject: [PATCH] do it 3 times --- apps/remix-ide-e2e/src/tests/ballot.test.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index 99403e95f9..8a7237efce 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -131,17 +131,21 @@ module.exports = { .click('*[data-id="scConfigExpander"]') .waitForElementVisible('*[data-id="scFileConfiguration"]', 10000) .click('*[data-id="scFileConfiguration"]') - .saveScreenshot('./reports/screenshots/cf-00.png') .waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) - .saveScreenshot('./reports/screenshots/cf-01.png') .click('*[data-id="scConfigChangeFilePath"]') - .saveScreenshot('./reports/screenshots/cf-0.png') .waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) - .saveScreenshot('./reports/screenshots/cf-1.png') .updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') - .saveScreenshot('./reports/screenshots/cf-2.png') .sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) - .saveScreenshot('./reports/screenshots/cf-3.png') + .waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) + .click('*[data-id="scConfigChangeFilePath"]') + .waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) + .updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') + .sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) + .waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) + .click('*[data-id="scConfigChangeFilePath"]') + .waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) + .updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') + .sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) .openFile('Untitled.sol') .verifyContracts(['Ballot'], { wait: 2000, runs: '300' }) },