Skip to content

Commit

Permalink
Merge branch 'develop' into feat/improve-notifications-stories
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoscurati authored Oct 25, 2024
2 parents 843ef49 + 684689e commit 15c45d9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,10 @@ const onboardingCompleteWalletCreationWithOptOut = async (
});
}

if (optOutOptionsToUse.profileSync) {
if (
optOutOptionsToUse.profileSync &&
!optOutOptionsToUse.basicFunctionality
) {
await driver.clickElement(
'[data-testid="profile-sync-toggle"] .toggle-button',
);
Expand Down
38 changes: 38 additions & 0 deletions test/e2e/tests/settings/address-book.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,44 @@ describe('Address Book', function () {
},
);
});

it('Adds a new contact to the address book', async function () {
await withFixtures(
{
fixtures: new FixtureBuilder().build(),
ganacheOptions: defaultGanacheOptions,
title: this.test.fullTitle(),
},
async ({ driver }) => {
await unlockWallet(driver);
await openMenuSafe(driver);

await driver.clickElement({ text: 'Settings', tag: 'div' });
await driver.clickElement({ text: 'Contacts', tag: 'div' });

await driver.clickElement('.address-book__link');

await driver.fill('#nickname', 'Test User');

await driver.fill(
'[data-testid="ens-input"]',
'0x56A355d3427bC2B1E22c78197AF091230919Cc2A',
);

await driver.clickElement('[data-testid="page-container-footer-next"]');

await driver.waitForSelector({
text: 'Test User',
css: '.address-list-item__label',
});
await driver.waitForSelector({
css: '[data-testid="address-list-item-address"]',
text: '0x56A35...9Cc2A',
});
},
);
});

it('Edit entry in address book', async function () {
await withFixtures(
{
Expand Down

0 comments on commit 15c45d9

Please sign in to comment.