Skip to content

Commit

Permalink
Fix some E2E assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Oct 16, 2024
1 parent e14d7e1 commit 0c9f4e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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 domain name"]',
'[placeholder="Enter a public address or ENS 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 domain name"]',
'[placeholder="Enter a public address or ENS name"]',
input,
);
await driver.clickElement({ text: 'Watch account', tag: 'button' });
Expand Down
6 changes: 5 additions & 1 deletion test/e2e/tests/settings/change-language.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ describe('Settings - general tab @no-mmi', function (this: Suite) {
await changeLanguage(driver, languageIndex);
await driver.navigate();
await driver.clickElement(selectors.ethOverviewSend);
await driver.fill(selectors.ensInput, 'test');
await driver.pasteIntoField(
selectors.ensInput,
// use wrong checksum address; other inputs don't show error until snaps name-lookup has happened
'0xAAAA6BF26964aF9D7eEd9e03E53415D37aA96045',
);

// Validate the language change is reflected in the dialog message
const isDialogMessageChanged = await driver.isElementPresent(
Expand Down

0 comments on commit 0c9f4e8

Please sign in to comment.