Skip to content

Commit

Permalink
fix sendconfirmation and addresses tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lykalabrada committed Oct 18, 2023
1 parent 48d62c1 commit dca49dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion mobile-app/app/contexts/CustomServiceProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function getEthRpcUrl(network: EnvironmentNetwork) {
// TODO: Add proper ethereum RPC URLs for each network
switch (network) {
case EnvironmentNetwork.LocalPlayground:
return "http://localhost:19551";
case EnvironmentNetwork.RemotePlayground:
return "http://localhost:19551";
case EnvironmentNetwork.DevNet:
case EnvironmentNetwork.Changi:
return "http://34.34.156.49:20551"; // TODO: add final eth rpc url for changi, devnet and remote playground
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ context("Portfolio - Send - Address Book", () => {
addresses[index],
);

cy.getByTestID(`address_row_${index}_WHITELISTED_caret`).should("exist");

// dvm address
if (index === 0) {
cy.getByTestID(`address_row_label_${index}_WHITELISTED_EVM_tag`).should(
Expand All @@ -95,9 +93,6 @@ context("Portfolio - Send - Address Book", () => {
cy.getByTestID(`address_row_text_${index}_YOUR_ADDRESS_EVM`).should(
"exist",
);

// caret
cy.getByTestID(`address_row_${index}_YOUR_ADDRESS_caret`).should("exist");
}

// Send DFI tokens dvm -> evm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ context("Wallet - Send Preview/Confirmation", () => {
.invoke("text")
.should((t) => expect(t).equal("1.23400000"));
cy.getByTestID("wallet_address").should("exist");
cy.getByTestID("summary_to_value").should(
cy.getByTestID("address_input_footer").should(
"have.text",
"bcrt1q8rfsfny80jx78cmk4rsa069e2ckp6rn83u6ut9"
"bcrt1q8rfsfny80jx78cmk4rsa069e2ckp6rn83u6ut9",
);

cy.getByTestID("transaction_fee_label").should(
"have.text",
"Transaction fee"
"Transaction fee",
);
cy.getByTestID("transaction_fee_value").contains("DFI");

cy.getByTestID("text_amount_label").should("have.text", "Amount to send");
cy.getByTestID("text_amount").contains("1.23400000 dBTC");
cy.getByTestID("text_amount_rhsUsdAmount").should(
"have.text",
"$12,340.00"
"$12,340.00",
);
cy.getByTestID("button_confirm_send").should("not.have.attr", "disabled");
});
Expand Down

0 comments on commit dca49dc

Please sign in to comment.