1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/test/e2e/tests
Mark Stacey 7199d9c567 Use externally hosted phishing warning page
An externally hosted phishing warning page is now used rather than the
built-in phishing warning page.The phishing page warning URL is set via
configuration file or environment variable. The default URL is either
the expected production URL or `http://localhost:9999/` for e2e testing
environments.

The new external phishing page includes a design change when it is
loaded within an iframe. In that case it now shows a condensed message,
and prompts the user to open the full warning page in a new tab to see
more details or bypass the warning. This is to prevent a clickjacking
attack from safelisting a site without user consent.

The new external phishing page also includes a simple caching service
worker to ensure it continues to work offline (or if our hosting goes
offline), as long as the user has successfully loaded the page at least
once. We also load the page temporarily during the extension startup
process to trigger the service worker installation.

The old phishing page and all related lines have been removed. The
property `web_accessible_resources` has also been removed from the
manifest. The only entry apart from the phishing page was `inpage.js`,
and we don't need that to be web accessible anymore because we inject
the script inline into each page rather than loading the file directly.

New e2e tests have been added to cover more phishing warning page
functionality, including the "safelist" action and the "iframe" case.
2022-05-16 14:40:50 -02:30
..
account-details.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
add-account.spec.js Split SRP input by word (#14016) 2022-03-21 16:39:26 -02:30
add-hide-token.spec.js Refactor ESLint config (#13482) 2022-02-28 10:42:09 -07:00
address-book.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
contract-interactions.spec.js failing contract interaction e2e (#14227) 2022-03-29 15:55:55 +01:00
custom-rpc-history.spec.js Feat/settings search (#13214) 2022-02-22 17:28:21 -03:30
dapp-interactions.spec.js E2e dapp interactions (#14149) 2022-03-29 17:47:45 +02:00
edit-gas-fee.spec.js update gas fees (#13646) 2022-03-25 21:11:04 +04:00
eth-sign.spec.js E2e signing (#13507) 2022-02-04 15:39:48 +00:00
failing-contract.spec.js Remove duplicate gas simulation error messages (#14409) 2022-04-13 08:01:21 -07:00
from-import-ui.spec.js add test: Import Account using private key of an already active account should result in an error (#13673) 2022-02-23 15:23:06 -06:00
incremental-security.spec.js Upgrade ganache - continued (#13354) 2022-01-20 16:56:52 +00:00
localization.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
lock-account.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
lockdown.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
metamask-responsive-ui.spec.js Split SRP input by word (#14016) 2022-03-21 16:39:26 -02:30
metrics.spec.js E2e metrics (#13904) 2022-03-15 13:17:48 -03:00
navigate-transactions.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
permissions.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
personal-sign.spec.js fix test (#13513) 2022-02-04 17:00:43 +00:00
phishing-detection.spec.js Use externally hosted phishing warning page 2022-05-16 14:40:50 -02:30
provider-api.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
send-edit.spec.js update gas fees (#13646) 2022-03-25 21:11:04 +04:00
send-eth.spec.js update gas fees (#13646) 2022-03-25 21:11:04 +04:00
signature-request.spec.js Refactor ESLint config (#13482) 2022-02-28 10:42:09 -07:00
simple-send.spec.js Adding support for EIP-1559 in E2E tests (#13282) 2022-01-19 04:38:41 +05:30
threebox.spec.js Make default icons the same on mobile and extension #13264 (#13408) 2022-02-16 11:03:17 -06:00
token-details.spec.js Add e2e testcase for token details functionality (#13818) 2022-03-09 09:35:14 +01:00