Hassan Malik
c2b2f2685e
[FLASK] Redesign key management modal ( #18263 )
...
* added the rest of the sev1 warnings to getSnapInstallWarnings
* added and updated translations
* Updated getSnapInstallWarnings to include warnings for all weight-1 permissions
* Updated snap install warning and css according to designs
* fix snaps tests
* fixed alignment/spacing
* updated e2e tests to click through the newly displayed public key access warning
* lint fix
* fixed update snap test
* refactored getSnapInstallWarnings, moved logic to PERMISSION_DESCRIPTIONS
* fix logic to account for objects & arrays
* update function description
* add missing properties to ethereum provider description
* moved id and message to baseDescription to fix error
* add optional chaining to fix undefined error
* more optional chaining
* more optional chaining
2023-03-29 15:17:57 -04:00
David Drazic
0847917df4
[FLASK] Update UI related to MetaMask Snaps Platform trademark ( #18172 )
...
* Update UI related to MetaMask Snaps Platform trademark
* Remove redundant UI text according to new designs
* Fix lint errors
* Fix e2e test expectation
* Fix lint in test
* Fix e2e test expectation
* Fix some UI parts
* Update CSS for noSnaps message
* Add next design iteration
* Add minor fix
* Update locale message
* Fix learn more text size
* Refactor usage of design system components
---------
Co-authored-by: Erik Marks <rekmarks@protonmail.com>
2023-03-21 16:52:13 +01:00
Guillaume Roux
d6f58bceb0
[FLASK] snaps-monorepo@0.31.0
( #18142 )
...
* allow SnapController to call `ApprovalController:updateRequestState` action
* combine popups
* show only autorship pill on result
* lint
* update `snaps-monorepo@0.31.0` and regen policies
* dedupe deps and fix fencing
* fix update button text
* fix fencing
* Update a bunch of e2es
* address requested changes
* update policy
* bump key-tree
* fix lint
* Update RPC E2E
* fix locales
* Remove wrong instance of window handle polling
* design changes and address pr comments
* remove unused imports
* fix lint
* fix fencing
* remove unused locales
* fence things
* re-add redirection
* bump test-snaps version
* Fix update e2e
* fix redirecting logic and address requested changes
* force update metamask state on approved
* move force update
---------
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-03-17 12:00:05 +01:00
Bowen Sanders
7a421e05c3
[FLASK] Snaps e2e test stability improvements ( #18090 )
...
* waitForSelector and pasteIntoField used now
2023-03-15 10:03:01 -07:00
Hassan Malik
7086494b72
[FLASK] BREAKING - snaps-monorepo@0.30.0 ( #17718 )
...
* updated snap permission to wallet_snap, updated tests and added migration
* updated snap packages
* yarn.lock fix
* fixed errors
* override policy
* update policy
* undo override
* updated localization message descriptions
* updated lavamoat policy
* more policy updates
* update permission controller version
* update policy
* update fixture builder
* updated code to include permission value to satisfy wallet_snap permission description call
* fix import issue
* update test-snaps version
* added missing actions, added snap permission dedupe function
* prettier fix
* fix fencing
* add more fencing
* prettier fix
* fix fencing (again)
* added new action and selector and updated view snap accordingly
* update test snaps website version
* unfence request variable
* add fencing
* add optional chaining to fix type error
* update migration #
* remove old migration
* prettier fix
* fix migration test
* fix fencing
* added missing fencing
* updated code to workaround fencing
* update test-snaps site version and remove snap confirm test
* update snap packages
* update policies
* fix merge marker issue
* update test
* more fixes
* fix permissions
* update test
* fixed test
* Bump test-snaps and iframe-execution-environment
* remove unused snap permission from fixture builder
* update policies
* undo comment removal, update selector implementation
* removed unnecessary function, updated migration, updated caveat action
* remove optional chaining
* fix type issue
* more type fixes
* fix migration test
* remove isFlask check, make migration logic more robust
* update coverage
* Update LavaMoat policies
* Update test/e2e/snaps/enums.js
* add extra bail condition
* Revert "add extra bail condition"
This reverts commit b45c53dcfc6e6e35a5e283d4955d6d6ea9ca5965.
* Revert "Revert "add extra bail condition""
This reverts commit cd2ded677935c9cdab0c02b6af55474c83727f60.
* fix test
* add SnapController entry to state object
* updated permission name and caveat type with hardcoded values
* add extra test for non-flask scenario
* update lavamoat policies
* fix locale messages
* change coverage target
* re-enable rpc snap test
* revert locale message change
* fix el message
* reverted changes
---------
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-03-08 13:29:23 -05:00
Peter
5c30fee59a
remove extraneous arg from clickElement ( #18050 )
2023-03-08 13:17:56 +00:00
Erik Marks
90ae4980b3
Update snaps locale messages for casing and content ( #17915 )
...
* Update snaps locale messages for casing and content
* Fix non-English locales
* udpate e2e test
---------
Co-authored-by: Guillaume Roux <guillaumeroux123@gmail.com>
2023-02-28 19:21:33 +01:00
Bowen Sanders
e015e027b6
[FLASK] Create E2E test for cronjobs ( #17365 )
...
* added long test
* Wait for a maximum of 65 seconds, not a hardcoded length
* Fix lint
---------
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-02-28 14:07:00 +01:00
Maarten Zuidhoorn
f20d5db1e4
[FLASK] Temporarily disable JSON-RPC snap e2e test ( #17778 )
...
* Temporarily disable JSON-RPC snap e2e test
* Update outdated snapshot
2023-02-16 10:35:11 +01:00
Bowen Sanders
0ffd548ff9
[FLASK] Create E2E test for RPC endowment ( #17525 )
...
* create e2e test
2023-02-06 09:54:07 -08:00
Frederik Bolding
f6f691190d
Fix Snaps E2E test flake ( #17174 )
2023-01-13 15:10:47 +01:00
Bowen Sanders
4c8faaba48
[FLASK] Create E2E test for snap_dialog ( #17111 )
...
* added dialog e2e test
2023-01-12 09:25:46 -08:00
Bowen Sanders
1b62a773b4
[E2E] Change to replace confirm snap to dialog snap ( #17146 )
2023-01-12 15:29:29 +01:00
Bowen Sanders
f2da79f563
[E2E] Fixes to try to deflake Snaps E2E tests ( #17123 )
...
* added delays in several places
* fix to update test
2023-01-10 11:11:15 -08:00
Frederik Bolding
7e7a0f1f72
[FLASK] Use custom UI for transaction insights ( #16912 )
...
* Allow custom UI for transaction insights
* Fix margin
* Small fixes to CSS and selectors
* Rename property
* Fix E2E locally
* Bump test-snaps
* Bump test-snaps
2022-12-20 11:44:49 +01:00
Bowen Sanders
720c7e7d16
initial deflakery ( #16894 )
2022-12-12 12:14:23 -08:00
Bowen Sanders
7e7be2769d
[FLASK] Create E2E test for tx-insights ( #16785 )
...
* Created an E2E test for tx-insights.
Co-authored-by: Guillaume Roux <guillaumeroux123@gmail.com>
2022-12-08 12:15:59 -08:00
Bowen Sanders
0e1c385cd0
[FLASK] Create E2E test for snap management ( #16628 )
...
* added management test
* added id and dismiss alert function
* changed xwindow handling
* fixed linting
2022-11-30 14:12:09 +01:00
Frederik Bolding
dfb6210910
[FLASK] snaps-monorepo@0.25.0
( #16673 )
...
* snaps-monorepo@0.25.0
* Regen LavaMoat policies
* Bump test-snaps
* [FLASK] Add Snaps JSON-RPC handler permission (#16670 )
* Add Snaps JSON-RPC handler permission
* Add copy and icon
* Fix test
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
2022-11-30 13:19:33 +01:00
Frederik Bolding
de955f3faa
[FLASK] snaps-monorepo@0.24.1
( #16525 )
...
* snaps-monorepo@0.24.0
* Fix imports and regen LavaMoat policies
* Bump iframe-execution-environment
* Fix tests
* Add permissions
* Bump patch
* Bump test-snaps
* [FLASK] Fix update e2e test to catch snaps with caveats (#16546 )
* changed snap to update to bip32
* small changes to test
* Fix lint
* Fix E2E
* Update copy
* Update icon
Co-authored-by: Bowen Sanders <bowensanders@gmail.com>
2022-11-22 13:07:08 +01:00
Frederik Bolding
8a529bca47
[FLASK] Improve Snaps E2E stability ( #16597 )
...
* Improve Snaps E2E stability
* Simplify
* Fix lint
2022-11-21 14:38:05 +01:00
Bowen Sanders
327272f71e
[FLASK] Update e2e tests for new react test-snaps page ( #16324 )
...
* Creates updated e2e tests compatible with the new react based test-snaps page.
2022-11-16 13:47:51 -08:00
Frederik Bolding
de3068d932
[FLASK] snaps-monorepo@0.23.0
( #16394 )
...
* snaps-monorepo@0.23.0
* Regen LavaMoat policies
* Update iframe-execution-environment
* Fix tests
* Bump luxon
* Fix lint
* Update test-snaps
* Bump post-message-stream
* Fix E2E
2022-11-08 10:31:22 +01:00
Peter Yinusa
0b4532ec1b
E2e test fixtures ( #16061 )
...
* remove state.json files
* move file
* Update Readme
* Create fixture builder
* load test fixture
* remove redundant method
* update snap tests
* update stats tests
* update extension tests
* update extension tests
* Update fixture data
* snap test dapp connection
* Update fixture data
* add onboarding fixture
* use onboarding fixture
* reuse import account vault
* remove unnecessary use of class
* use fixture builder in new tests
* switch to function
* update default fixture
* update default fixture
* update test
* update 1559 test fixttures
* update 1559 test fixtures
* update 1559 test fixtures
* dismiss 3box whats new
* remove redundant code
* move docs
* remove unused code
* token detection
* use default timeout
* remove redundant code
* Update fixture builder
hide `Protect your funds` dialog
remove browser environment
remove default network details
hide dismiss seed backup reminder
recursively merges fixture data
* add token to tokencontroller
* remove network details
* add missing identities to preference controller
* remove duplicate properties
* update bip-32 to use fixturebuilder
* alphabetise snap permissions
* update get snaps to use fixturebuilder
* Update test-snap-bip-32.spec.js
wait for window
* add popular network state
* update test
* lint
2022-10-28 09:42:12 +01:00
Frederik Bolding
359f782e7e
[FLASK] Fix flaky BIP-32 E2E test ( #16255 )
2022-10-24 13:49:41 +02:00
Frederik Bolding
6ba9f65b4c
[FLASK] Add E2E for wallet_getSnaps
( #16169 )
...
* Add E2E for wallet_getSnaps
* Fix lint
2022-10-14 15:34:27 +02:00
Bowen Sanders
1b4f1344b1
[FLASK] Create E2E Test for BIP-32 test-snap ( #16037 )
...
* new test and changed ui
* added bip32 test
* fixed linting and other errors
* changed description
* Bump test-snaps to latest and fix tests
* Fix error e2e
* Fix confirm e2e
* Remove balance
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-10-14 14:33:36 +02:00
Bowen Sanders
8622e61bd3
Create snaps E2E test for update function ( #15979 )
2022-09-27 16:37:17 -07:00
Frederik Bolding
4eb8e50800
[FLASK] snaps-skunkworks@0.21.0
( #15889 )
...
* snaps-skunkworks@0.21.0
* Update policy files
* Regen policies again
* Fix tests
* Simplify selector
* Fix flaky test
* Update iframe execution env
* Move snap install warnings to util
* Add basic copy for snap_getBip32PublicKey
* Update permission icon
* Update E2Es
* Fix lint
* Fix locale strings
2022-09-23 12:39:54 +02:00
Frederik Bolding
d054175b2e
[FLASK] Fix an issue with installing and updating snaps with 0 permissions ( #15796 )
...
* Fix an issue with installing snaps with 0 permissions
* Fix some issues
* Fix lint
* Fix code fencing
* UI improvements for no permission use-case
* Fix redirect
* Delay BIP44 test slightly
* Add more delay
* Fix update UI
2022-09-20 14:46:25 +02:00
Frederik Bolding
7fc418a96d
[FLASK] snaps-skunkworks@0.20.0
( #15706 )
...
* snaps-skunkworks@0.20.0
* Generate LavaMoat policy
* Fix some breaking changes
* Update iframe execution env
* Fix unit tests
* Implement snap_getBip44Entropy
* Regenerate LavaMoat policy
* Prefer ControllerMessenger over direct calls
* Fix not showing warning for BIP44 legacy permission and E2E test
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
2022-08-26 13:48:53 +02:00
Maarten Zuidhoorn
a52c6a4908
[FLASK] snaps-skunkworks@0.19.0
( #15619 )
...
* Bump snaps-skunkworks to 0.19.0
* Improve snap_getBip32Entropy UI
* Remove console.log
* Update LavaMoat policy
* Dedupe Yarn lock
* Update LavaMoat policy again
* Fix tests
* Update policies and e2e tests
* Update policy again
* Update iframe-execution-environment
* Dedupe yarn.lock
* Update snapshots
* Fix PR comments
* Add TODO
* Trigger CI
2022-08-18 17:07:34 +02:00
Hassan Malik
a7179a6b88
[FLASK] Add update snap UI ( #15143 )
...
* added snap-update folder
* addded update route, snap update component, updated permissions connect components
* added actions and selectors
* updated permissions selectors and updated permissions connect container to have update snap logic
* updated translations, added selector, updated request object
* updated translations, added update snap permission list component
* more fixes
* added CSS, redid some HTML
* lint fixes
* Add missing grantPermissions action
* updated button padding
* fixes
* removed prop type
* fix Update & Install wrapping
* made changes for forthcoming snap controller PR
* removed ununsed imports
* updated css
* re-added padding rule and removed unused translation messages
* addressed comments
* add subtext for new permissions
* lint fix
* removed unused translations
* some more changes
* fix e2e tests
* lint fix
* added in delay for e2e tests
* Revert "added in delay for e2e tests"
This reverts commit 095962a2c0c9de0b0b343d3134bb0787044dd8ce.
* fixed routing logic
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Guillaume Roux <guillaumeroux123@gmail.com>
2022-08-03 12:02:44 -04:00
Guillaume Roux
9ce4a8f987
[FLASK] Fix key management permission copy ( #14849 )
2022-08-02 11:29:40 +02:00
PeterYinusa
9ae909d6a7
[E2E] Install Firefox extension from dist folder ( #15255 )
...
* update webdriver
* install extension from dist folder
* remove redundant code
2022-07-18 09:22:23 +01:00
Bowen Sanders
b486524c07
Snaps E2E Test Upgrades for the new test-snaps UI ( #14980 )
...
* fixed e2e tests for new UI
* fixed scrolling in tests to be bi-compatible
* updated enums to point to new UI version
2022-07-06 15:22:21 -07:00
Frederik Bolding
82645ba516
[FLASK] snaps-skunkworks@0.16.0 ( #14952 )
...
* snaps-skunkworks@0.16.0
* Bump iframe-execution-environment
* Add getAppKey
* Regen LavaMoat policy
* Bump test-snaps
2022-06-20 10:13:12 +02:00
Bowen Sanders
e546e137de
Create e2e test for snap in-app notification ( #14894 )
...
* Create e2e test for snaps in-app notification
* replaced xpath selectors
* fixed description
2022-06-08 12:07:41 -07:00
Frederik Bolding
66c049bb35
snaps-skunkworks@0.14.0 ( #14700 )
...
* snaps-skunkworks@0.13.0
* snaps-skunkworks@0.14.0
* Fix test
* Add long-running permission copy and icon
* Run linting
* Fix typo
* Bump E2E version
2022-05-18 13:49:26 +02:00
Erik Marks
ca6835a86d
Use enum for test snaps website URL ( #14727 )
...
* Use enum for test snaps website
* Fix confirm snap test
2022-05-17 10:39:55 +02:00
Bowen Sanders
77c1100858
create e2e test for manageState snap ( #14699 )
2022-05-12 10:56:55 -07:00
Bowen Sanders
c1e53b3330
Create new e2e test for bip-44 snap in test-snaps ( #14440 )
...
* created new test for bip-44 snap test
* added driver.Key.SPACE to allow sending spacebar
* made changes to final result check
* fixed expected pk result to proper value
* fixed to use npm package instead of local
* removed comment
* removed const delay - not needed (lint error)
2022-04-27 11:21:40 -07:00
Shane
1f55af3151
Fixed firefox Snaps + add initial end-to-end tests ( #13671 )
...
* Changed registryUrl for snaps only in firefox
Fixed getPlatform to only be imported into metamask-controller in flask
Removed snaps specific testrunner script and use run-all with a cli option
* Fixed flakey tests
* Removed unneeded await
* Added delay
* Fixed linting
2022-03-10 14:01:55 -08:00