Skip to content

Commit

Permalink
fix placeholder text in tests and in snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalik88 committed Oct 15, 2024
1 parent d97fe11 commit e14d7e1
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions test/e2e/flask/create-watch-account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function watchEoaAddress(
): Promise<void> {
await startCreateWatchAccountFlow(driver, unlockWalletFirst);
await driver.fill(
'[placeholder="Enter a public address or ENS name"]',
'[placeholder="Enter a public address or domain name"]',
address,
);
await driver.clickElement({ text: 'Watch account', tag: 'button' });
Expand Down Expand Up @@ -189,7 +189,7 @@ describe('Account-watcher snap', function (this: Suite) {
await startCreateWatchAccountFlow(driver);

await driver.fill(
'[placeholder="Enter a public address or ENS name"]',
'[placeholder="Enter a public address or domain name"]',
input,
);
await driver.clickElement({ text: 'Watch account', tag: 'button' });
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/account/import-flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('Import flow @no-mmi', function () {
await locateAccountBalanceDOM(driver, ganacheServer);
await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);
await driver.fill('input[placeholder="0"]', '1');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/account/metamask-responsive-ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('MetaMask Responsive UI', function () {
// starts to send a transaction
await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/network/network-error.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('Gas API fallback', function () {

await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/petnames/petnames-transactions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function createDappSendTransaction(driver) {
async function createWalletSendTransaction(driver, recipientAddress) {
await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
recipientAddress,
);

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/swap-send/swap-send-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class SwapSendPage {

fillRecipientAddressInput = async (address: string) => {
await this.driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
address,
);
};
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/tokens/custom-token-send-transfer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Transfer custom tokens @no-mmi', function () {
await driver.delay(500);
await driver.clickElement('[data-testid="eth-overview-send"]');
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
recipientAddress,
);
await driver.waitForSelector({
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/tests/tokens/nft/send-nft.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Send NFT', function () {
// TODO: Update Test when Multichain Send Flow is added
await driver.clickElement({ text: 'Send', tag: 'button' });
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0xc427D562164062a23a5cFf596A4a3208e72Acd28',
);
await driver.clickElement({
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('Send NFT', function () {

await driver.clickElement({ text: 'Send', tag: 'button' });
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0xc427D562164062a23a5cFf596A4a3208e72Acd28',
);

Expand Down Expand Up @@ -171,7 +171,7 @@ describe('Send NFT', function () {
await driver.clickElement({ text: 'Send', tag: 'button' });

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0xc427D562164062a23a5cFf596A4a3208e72Acd28',
);

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/tokens/send-erc20-to-contract.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Send ERC20 token to contract address', function () {

// Type contract address
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
contractAddress,
);

Expand Down
12 changes: 6 additions & 6 deletions test/e2e/tests/transaction/gas-estimates.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Gas estimates generated by MetaMask', function () {
await openActionMenuAndStartSendFlow(driver);

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -72,7 +72,7 @@ describe('Gas estimates generated by MetaMask', function () {
await openActionMenuAndStartSendFlow(driver);

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -111,7 +111,7 @@ describe('Gas estimates generated by MetaMask', function () {
await openActionMenuAndStartSendFlow(driver);

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -145,7 +145,7 @@ describe('Gas estimates generated by MetaMask', function () {

await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -191,7 +191,7 @@ describe('Gas estimates generated by MetaMask', function () {

await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -220,7 +220,7 @@ describe('Gas estimates generated by MetaMask', function () {

await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down
8 changes: 4 additions & 4 deletions test/e2e/tests/transaction/send-eth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Send ETH', function () {
await openActionMenuAndStartSendFlow(driver);

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -110,7 +110,7 @@ describe('Send ETH', function () {

await openActionMenuAndStartSendFlow(driver);
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down Expand Up @@ -172,7 +172,7 @@ describe('Send ETH', function () {

await driver.clickElement('[data-testid="eth-overview-send"]');
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
contractAddress,
);

Expand Down Expand Up @@ -442,7 +442,7 @@ describe('Send ETH', function () {
await openActionMenuAndStartSendFlow(driver);

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0xc427D562164062a23a5cFf596A4a3208e72Acd28',
);

Expand Down
8 changes: 4 additions & 4 deletions test/e2e/tests/transaction/send-hex-address.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Send ETH to a 40 character hexadecimal address', function () {
await openActionMenuAndStartSendFlow(driver);
// Paste address without hex prefix
await driver.pasteIntoField(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
nonHexPrefixedAddress,
);
await driver.findElement({
Expand Down Expand Up @@ -72,7 +72,7 @@ describe('Send ETH to a 40 character hexadecimal address', function () {
await openActionMenuAndStartSendFlow(driver);
// Type address without hex prefix
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
nonHexPrefixedAddress,
);
await driver.findElement({
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('Send ERC20 to a 40 character hexadecimal address', function () {
await driver.clickElement('[data-testid="coin-overview-send"]');
// Paste address without hex prefix
await driver.pasteIntoField(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
nonHexPrefixedAddress,
);
await driver.findElement({
Expand Down Expand Up @@ -192,7 +192,7 @@ describe('Send ERC20 to a 40 character hexadecimal address', function () {

// Type address without hex prefix
await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
nonHexPrefixedAddress,
);
await driver.findElement({
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/user-actions-benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function confirmTx() {
await openActionMenuAndStartSendFlow(driver);

await driver.fill(
'input[placeholder="Enter public address (0x) or ENS name"]',
'input[placeholder="Enter public address (0x) or domain name"]',
'0x2f318C334780961FB129D2a6c30D0763d9a5C970',
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ exports[`SendPage render and initialization should render correctly even when a
class="ens-input__wrapper__input"
data-testid="ens-input"
dir="auto"
placeholder="Enter public address (0x) or ENS name"
placeholder="Enter public address (0x) or domain name"
spellcheck="false"
type="text"
value=""
Expand Down

0 comments on commit e14d7e1

Please sign in to comment.