Mark Stacey
ace7b0cda9
Revert "Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0""
...
This reverts commit d91ce9c4b5
.
2 years ago
Mark Stacey
d91ce9c4b5
Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0"
...
This reverts commit 308033edbf
, reversing
changes made to b8d71d6d1d
.
2 years ago
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
2 years ago
Mark Stacey
7db5d9e527
Add fixture server substitutions ( #12476 )
...
The fixture server now supports state substitutions. This allows us to
embed dynamic values in our fixtures.
The `custom-token` fixture has been updated to include such a fixture.
The date that the seed phrase reminder was last shown has been updated
to always be the current date, to prevent the reminder from showing up
during e2e tests. This fixes the e2e test failure for the test
"add-hide-token.spec.js" that we've been seeing on CI lately.
3 years ago
Erik Marks
76a2a9bb8b
@metamask/eslint config@5.0.0 ( #10358 )
...
* @metamask/eslint-config@5.0.0
* Update eslintrc and prettierrc
* yarn lint:fix
4 years ago
Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
4 years ago
Whymarrh Whitby
c1e3c229bc
Fix import/order issues ( #9239 )
...
See [`import/order`](https://eslint.org/docs/rules/import/order ) for more information.
This change enables `import/order` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
a8863a3446
Fix consistent-return issues ( #9192 )
...
See [`consistent-return`](https://eslint.org/docs/rules/consistent-return ) for more information.
This change enables `consistent-return` and fixes the issues raised by the rule.
4 years ago
kumavis
7686edadb0
Build system refactor ( #8140 )
...
* build - start static asset task cleanup
* build - simplify manifest tasks
* build - refactor + rename some tasks
* build - various cleanups
* manifest - fix ref from controller
* build - drop gulp for simple async tasks
* build - breakout gulpfile into multiple files
* build - rename some tasks
* build - use task fn refs instead of string names
* build - bundle all scripts first, except for contentscript
* build - improve task timeline
* deps - update lock
* build - improve task time printout
* build/scripts - remove intermediate named task
* build - use 'yarn build' for task entry points
* build - properly run tasks via runTask for timeline display
* development/announcer - fix manifest path + clean
* build - lint fix
* build - make all defined tasks possible entry points
* build/task - properly report errors during task
* ci - fix sesify/lavamoat-viz build command
* build/scripts - run each bundle in separate processes
* lint fix
* build - forward childProcess logs to console
* build/task - fix parallel/series stream end event
* build/scripts refactor contentscript+inpage into a single task
* build/static - use the fs for 150x speedup zomg
* lint fix
* build/static - fix css copy
* Update development/build/scripts.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/scripts.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/index.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* deps - remove redundant mkdirp
* deps - remove unused pumpify
* deps - remove redundant merge-deep
* deps - prefer is-stream of isstream
* deps - remove clone for lodash.cloneDeep
* clean - remove commented code
* build/static - use fs.copy + fast-glob instead of linux cp for better platform support
* build/manifest - standardize task naming
* build/display - clean - remove unused code
* bugfix - fix fs.promises import
* build - create "clean" as named task for use as entrypoint
* build/static - fix for copying dirs
* Update development/build/task.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/display.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/display.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/display.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* build - use task refs, tasks only return promises not streams, etc
* lint fi bad merge + lint
* build - one last cleanup + refactor
* build - add comments introducing file
* build/manifest - fix bug + subtasks dont beed to be named
* Update package.json
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* build/task - remove unused fn
* Update package.json
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/styles.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* Update development/build/styles.js
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
5 years ago
Mark Stacey
eadeaa7883
End-to-end test state fixtures ( #7663 )
...
* Add network store for testing
An alternative persistent state store has been created for use with e2e
tests. Instead of reading state from disk, it tries to load state from
a local fixture server running on port `12345` and serving state from
the path `/state.json`, and returns a blank state otherwise.
* Add e2e test fixture server
A fixture server has been added for serving background state, which the
background will read upon startup as part of restoring persisted state.
The `signature-request` e2e test has been updated to use a fixture to
bypass the registration step. The fixture used (`imported-account`) was
generated by pausing midway through that test run
5 years ago