Skip to content

Commit 477bb6d

Browse files
authored
Merge pull request #24528 from MetaMask/Version-v11.15.5
v11.15.5
2 parents 452706c + f28fbae commit 477bb6d

File tree

7 files changed

+29
-15
lines changed

7 files changed

+29
-15
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [11.15.5]
10+
### Changed
11+
- Update copy in Smart Transactions opt-in modal([#24461](https://github.com/MetaMask/metamask-extension/pull/24461))
12+
913
## [11.15.4]
1014
### Changed
1115
- Update UI for the Smart Transactions Opt In modal ([#24441](https://github.com/MetaMask/metamask-extension/pull/24441))
@@ -4692,7 +4696,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
46924696
- Added the ability to restore accounts from seed words.
46934697

46944698

4695-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.15.4...HEAD
4699+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.15.5...HEAD
4700+
[11.15.5]: https://github.com/MetaMask/metamask-extension/compare/v11.15.4...v11.15.5
46964701
[11.15.4]: https://github.com/MetaMask/metamask-extension/compare/v11.15.3...v11.15.4
46974702
[11.15.3]: https://github.com/MetaMask/metamask-extension/compare/v11.15.2...v11.15.3
46984703
[11.15.2]: https://github.com/MetaMask/metamask-extension/compare/v11.15.1...v11.15.2

app/_locales/en/messages.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metamask-crx",
3-
"version": "11.15.4",
3+
"version": "11.15.5",
44
"private": true,
55
"repository": {
66
"type": "git",

test/e2e/mmi/pageObjects/mmi-signup-page.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export class MMISignUpPage {
4444
'button:has-text("Confirm Secret Recovery Phrase")',
4545
);
4646
this.agreeBtn = page.locator('button:has-text("I agree")');
47-
this.noThanksBtn = page.locator('button:has-text("No thanks")');
47+
this.noThanksBtn = page.locator(
48+
'button:has-text("Don\'t enable enhanced protection")',
49+
);
4850
this.passwordTxt = page.getByTestId('create-password-new');
4951
this.passwordConfirmTxt = page.getByTestId('create-password-confirm');
5052
this.agreeCheck = page.getByTestId('create-new-vault__terms-checkbox');

test/e2e/vault-decryption-chrome.spec.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ async function getExtensionStorageFilePath(driver) {
5050
*/
5151
async function closePopoverIfPresent(driver) {
5252
const popoverButtonSelector = '[data-testid="popover-close"]';
53-
const linkNoThanks = { text: 'No thanks', tag: 'button' };
53+
const linkNoThanks = {
54+
text: "Don't enable enhanced protection",
55+
tag: 'button',
56+
};
5457
await driver.clickElementSafe(popoverButtonSelector);
5558
await driver.clickElementSafe(linkNoThanks);
5659
}

test/e2e/webdriver/driver.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,16 @@ class Driver {
186186
.toXPath();
187187
return By.xpath(xpath);
188188
}
189+
// If the text to be selected contains single or double quotation marks
190+
// it can cause the xpath selector to be invalid. `textToLocate` results
191+
// in a string that won't be invalidated by the presence of quotation
192+
// marks within the text the test is trying to find
193+
const textToLocate = locator.text.match(/"/u)
194+
? `'${locator.text}'`
195+
: `"${locator.text}"`;
189196
// The tag prop is optional and further refines which elements match
190197
return By.xpath(
191-
`//${locator.tag ?? '*'}[contains(text(), '${locator.text}')]`,
198+
`//${locator.tag ?? '*'}[contains(text(), ${textToLocate})]`,
192199
);
193200
}
194201
throw new Error(

ui/components/app/smart-transactions/smart-transactions-opt-in-modal.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const NoThanksLink = ({
8989
width={BlockSize.Full}
9090
className="mm-smart-transactions-opt-in-modal__no-thanks-link"
9191
>
92-
{t('noThanks')}
92+
{t('dontEnableEnhancedProtection')}
9393
</Button>
9494
);
9595
};
@@ -149,10 +149,7 @@ const Benefits = () => {
149149
text={t('smartTransactionsBenefit1')}
150150
iconName={IconName.Confirmation}
151151
/>
152-
<Benefit
153-
text={t('smartTransactionsBenefit2')}
154-
iconName={IconName.SecurityTick}
155-
/>
152+
<Benefit text={t('smartTransactionsBenefit2')} iconName={IconName.Coin} />
156153
<Benefit
157154
text={t('smartTransactionsBenefit3')}
158155
iconName={IconName.Clock}

0 commit comments

Comments
 (0)