From 910418783e99787090d99a4723ab32fd97a0428c Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 19 Apr 2024 10:26:16 +0100 Subject: [PATCH] fix format for pinned contracts --- .../src/tests/pinned_contracts.test.ts | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/pinned_contracts.test.ts b/apps/remix-ide-e2e/src/tests/pinned_contracts.test.ts index 6b26008928..8c57a89947 100644 --- a/apps/remix-ide-e2e/src/tests/pinned_contracts.test.ts +++ b/apps/remix-ide-e2e/src/tests/pinned_contracts.test.ts @@ -29,7 +29,7 @@ module.exports = { .assert.textContains('*[data-id="deployAndRunNoInstanceText"]', 'Currently you have no unpinned contracts to interact with.') .assert.not.elementPresent('*[data-id="NoPinnedInstanceText"]') .assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]') - }, + }, 'Test pinned contract loading on environment change #group1': function (browser: NightwatchBrowser) { browser .switchEnvironment('vm-shanghai') @@ -41,7 +41,7 @@ module.exports = { .assert.textContains('*[data-id="pinnedContractsSublabel"]', '(network: vm-cancun)') .assert.not.elementPresent('*[data-id="NoPinnedInstanceText"]') .assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]') - }, + }, 'Interact with pinned contract #group1': function (browser: NightwatchBrowser) { browser .click('*[data-id="universalDappUiTitleExpander0"]') @@ -51,23 +51,23 @@ module.exports = { .assert.textContains('*[data-id="instanceContractFilePath"]', 'default_workspace/contracts/1_Storage.sol') .clickFunction('retrieve - call') .testFunction('last', - { - to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', - 'decoded output': { "0": "uint256: 0" } - }) + { + to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', + 'decoded output': { "0": "uint256: 0" } + }) .clickFunction('store - transact (not payable)', { types: 'uint256 num', values: '35' }) .testFunction('last', - { - status: '0x1 Transaction mined and execution succeed', - 'decoded input': { "uint256 num": "35" } - }) + { + status: '0x1 Transaction mined and execution succeed', + 'decoded input': { "uint256 num": "35" } + }) .clickFunction('retrieve - call') .testFunction('last', - { - to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', - 'decoded output': { "0": "uint256: 35" } - }) - }, + { + to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', + 'decoded output': { "0": "uint256: 35" } + }) + }, 'Unpin & interact #group1': function (browser: NightwatchBrowser) { browser .click('*[data-id="universalDappUiUdappUnpin"]') @@ -78,23 +78,23 @@ module.exports = { .assert.not.elementPresent('*[data-id="instanceContractFilePath"]') .clickFunction('retrieve - call') .testFunction('last', - { - to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', - 'decoded output': { "0": "uint256: 35" } - }) + { + to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', + 'decoded output': { "0": "uint256: 35" } + }) .clickFunction('store - transact (not payable)', { types: 'uint256 num', values: '55' }) .testFunction('last', - { - status: '0x1 Transaction mined and execution succeed', - 'decoded input': { "uint256 num": "55" } - }) + { + status: '0x1 Transaction mined and execution succeed', + 'decoded input': { "uint256 num": "55" } + }) .clickFunction('retrieve - call') .testFunction('last', - { - to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', - 'decoded output': { "0": "uint256: 55" } - }) - }, + { + to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', + 'decoded output': { "0": "uint256: 55" } + }) + }, 'Re-pin & delete immediately #group1': function (browser: NightwatchBrowser) { browser .click('*[data-id="universalDappUiUdappPin"]') @@ -102,5 +102,5 @@ module.exports = { .click('*[data-id="universalDappUiUdappDelete"]') .assert.textContains('*[data-id="NoPinnedInstanceText"]', 'No pinned contracts found for selected workspace & network') .assert.textContains('*[data-id="deployAndRunNoInstanceText"]', 'Currently you have no unpinned contracts to interact with.') - }, -} \ No newline at end of file + }, +}