Skip to content

Commit

Permalink
change element in test
Browse files Browse the repository at this point in the history
  • Loading branch information
joeizang committed Dec 13, 2024
1 parent 903aeff commit c12e4b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const tests = {

'Should deploy contract on Sepolia Test Network using MetaMask #group1': function (browser: NightwatchBrowser) {
if (!checkBrowserIsChrome(browser)) return
browser.clearConsole().waitForElementPresent('*[data-id="runTabSelectAccount"] option', 45000)
browser.clearConsole().waitForElementPresent('*[data-id="runTabSelectAccount"] a', 45000)
.clickLaunchIcon('filePanel')
.openFile('Greet.sol')
.clickLaunchIcon('udapp')
Expand Down Expand Up @@ -133,7 +133,7 @@ const tests = {

'Should deploy contract on Ethereum Main Network using MetaMask #group1': function (browser: NightwatchBrowser) {
if (!checkBrowserIsChrome(browser)) return
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option')
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] a')
.clickLaunchIcon('filePanel')
.openFile('Greet.sol')
.clickLaunchIcon('udapp')
Expand Down Expand Up @@ -293,11 +293,11 @@ const sources = [
pragma solidity ^0.8.0;
contract HelloWorld {
string public message;
fallback () external {
message = 'Hello World!';
}
function greet(string memory _message) public {
message = _message;
}
Expand All @@ -311,7 +311,7 @@ const sources = [
function sendSomeEther(uint256 num) public {
payable(msg.sender).transfer(num);
}
}`
}
}
Expand Down
9 changes: 6 additions & 3 deletions libs/remix-ui/run-tab/src/lib/components/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,22 @@ export function AccountUI(props: AccountProps) {
{props.accounts.isRequesting && <i className="fa fa-spinner fa-pulse ml-2" aria-hidden="true"></i>}
</label>
<div className="udapp_account">
<Dropdown className="udapp_selectExEnvOptions">
<Dropdown className="udapp_selectExEnvOptions" data-id="runTabSelectAccount">
<Dropdown.Toggle as={CustomToggle} icon={null} id="txorigin" data-id="runTabSelectAccount" className="btn btn-light btn-block w-100 d-inline-block border border-dark form-control">
{selectedAccount ? loadedAccounts[selectedAccount] : ''}
</Dropdown.Toggle>
<Dropdown.Menu as={CustomMenu} className="w-100 custom-dropdown-items" data-id="custom-dropdown-items">
<Dropdown.Menu
as={CustomMenu}
className="w-100 custom-dropdown-items"
data-id="custom-dropdown-items"
>
{accounts && accounts.length > 0 ? accounts.map((value, index) => (
<Dropdown.Item
key={index}
eventKey={selectedAccount}
onSelect={(e) => {
props.setAccount(value)
}}
data-id="runTabSelectAccount"
>
<span className="">
{loadedAccounts[value]}
Expand Down

0 comments on commit c12e4b8

Please sign in to comment.