* Add 3 step account creation * Add textarea with dropdown * Add OWASP and styles to PasswordStrength * Align the checkbox with other ui elements * Notification on mnemonic copy * Make confirmation label clickable * Do not shorten address in creation modal * Make address name not editable in header * Always show password strength meter * Always show password strength meter * Update tests to new account flow * Remove repeated dependency * Remove console.log from test * Update yarn.lock * Restore imports order. * Format div component according to style * Remove cursor styling for old browsers * Empty line * Organize imports. Configure StrengthTester once. Use color from theme. * wip on text area * TextArea styling * Checbox styling * Update repeated password validity on first password change * Simplify CopyButton notification code. * Change TextArea styling to more consistent * Make password strength indicator wider * Move external warning down and show on both steps * Inline TextArea subcomponents * Move mnemonic saved confirmation label closer to buttons * Add steps counter to header * Remove space Co-authored-by: Michał Ziętalak <michal.z@ethworks.io> Co-authored-by: Jaco Greeff <jacogr@gmail.com>
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
// Copyright 2017-2020 @polkadot/apps authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
const config = require('@polkadot/dev/config/jest');
|
|
|
|
const findPackages = require('./scripts/findPackages');
|
|
|
|
const internalModules = findPackages()
|
|
.filter(({ name }) => !['@polkadot/apps'].includes(name))
|
|
.reduce((modules, { dir, name }) => {
|
|
modules[`${name}(.*)$`] = `<rootDir>/packages/${dir}/src/$1`;
|
|
|
|
return modules;
|
|
}, {});
|
|
|
|
const defaultConfig = {
|
|
moduleNameMapper: {
|
|
...internalModules,
|
|
'@polkadot/apps/(.*)$': '<rootDir>/packages/apps/src/$1',
|
|
'\\.(css|less)$': 'empty/object',
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object',
|
|
'\\.(md)$': '<rootDir>/__mocks__/fileMock.js'
|
|
},
|
|
transformIgnorePatterns: [
|
|
'<rootDir>/node_modules'
|
|
]
|
|
};
|
|
|
|
module.exports = Object.assign({}, config, {
|
|
projects: [
|
|
{
|
|
...defaultConfig,
|
|
displayName: 'all-tests',
|
|
globalSetup: './jest/globalSetup.ts',
|
|
globalTeardown: './jest/globalTeardown.ts'
|
|
},
|
|
{
|
|
...defaultConfig,
|
|
displayName: 'fast-tests'
|
|
}
|
|
],
|
|
testTimeout: 25000
|
|
});
|