diff --git a/package.json b/package.json index 7350594d0b..e81e438231 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "copy-to-clipboard": "3.3.1", "cross-env": "7.0.3", "fontfaceobserver": "2.1.0", - "grommet": "2.17.2", + "grommet": "2.17.4", "grommet-icons": "4.6.0", "husky": "7.0.1", "i18next": "20.4.0", diff --git a/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap index 0e64ba5e15..b30f8a5984 100644 --- a/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap @@ -94,6 +94,26 @@ exports[` should match snapshot 1`] = ` border: 0; } +.c5:focus:not(:focus-visible) { + outline: none; + box-shadow: none; +} + +.c5:focus:not(:focus-visible) > circle, +.c5:focus:not(:focus-visible) > ellipse, +.c5:focus:not(:focus-visible) > line, +.c5:focus:not(:focus-visible) > path, +.c5:focus:not(:focus-visible) > polygon, +.c5:focus:not(:focus-visible) > polyline, +.c5:focus:not(:focus-visible) > rect { + outline: none; + box-shadow: none; +} + +.c5:focus:not(:focus-visible)::-moz-focus-inner { + border: 0; +} + .c3 { box-sizing: border-box; font-size: inherit; diff --git a/src/app/components/FatalErrorHandler/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/FatalErrorHandler/__tests__/__snapshots__/index.test.tsx.snap index 114559594b..82561a157c 100644 --- a/src/app/components/FatalErrorHandler/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/FatalErrorHandler/__tests__/__snapshots__/index.test.tsx.snap @@ -1,3 +1,21 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` should be null without an error 1`] = `null`; +exports[` should be null without an error 1`] = ` +.c0 { + font-family: Rubik; + font-size: 18px; + line-height: 24px; + background-color: #ffffff; + color: #444444; + box-sizing: border-box; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; +} + +
+`; diff --git a/src/app/components/FatalErrorHandler/__tests__/index.test.tsx b/src/app/components/FatalErrorHandler/__tests__/index.test.tsx index 0bc8cb2c2f..ad2f83fdf3 100644 --- a/src/app/components/FatalErrorHandler/__tests__/index.test.tsx +++ b/src/app/components/FatalErrorHandler/__tests__/index.test.tsx @@ -3,13 +3,16 @@ import { fatalErrorActions } from 'app/state/fatalerror' import * as React from 'react' import { Provider } from 'react-redux' import { configureAppStore } from 'store/configureStore' +import { ThemeProvider } from 'styles/theme/ThemeProvider' import { FatalErrorHandler } from '..' const renderComponent = store => render( - + + + , ) @@ -23,7 +26,7 @@ describe('', () => { it('should be null without an error', () => { const component = renderComponent(store) expect(component.container.firstChild).toMatchSnapshot() - expect(component.container.firstChild).toBeNull() + expect(component.container.firstChild!.firstChild).toBeNull() }) it('should display the error', async () => { diff --git a/src/app/components/MnemonicValidation/__tests__/index.test.tsx b/src/app/components/MnemonicValidation/__tests__/index.test.tsx index 9eeebea9ec..cb9b3c897e 100644 --- a/src/app/components/MnemonicValidation/__tests__/index.test.tsx +++ b/src/app/components/MnemonicValidation/__tests__/index.test.tsx @@ -2,6 +2,7 @@ import { render } from '@testing-library/react' import * as React from 'react' import { Provider } from 'react-redux' import { configureAppStore } from 'store/configureStore' +import { ThemeProvider } from 'styles/theme/ThemeProvider' import { MnemonicValidation } from '..' @@ -10,7 +11,11 @@ jest.mock('bip39', () => ({ })) const renderComponent = (store, component: React.ReactNode) => - render({component}) + render( + + {component} + , + ) describe('', () => { let store: ReturnType diff --git a/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap index 868a6f692d..5b8fd0f280 100644 --- a/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap @@ -109,6 +109,26 @@ exports[` should match snapshot 1`] = ` border: 0; } +.c6:focus:not(:focus-visible) { + outline: none; + box-shadow: none; +} + +.c6:focus:not(:focus-visible) > circle, +.c6:focus:not(:focus-visible) > ellipse, +.c6:focus:not(:focus-visible) > line, +.c6:focus:not(:focus-visible) > path, +.c6:focus:not(:focus-visible) > polygon, +.c6:focus:not(:focus-visible) > polyline, +.c6:focus:not(:focus-visible) > rect { + outline: none; + box-shadow: none; +} + +.c6:focus:not(:focus-visible)::-moz-focus-inner { + border: 0; +} + .c4 { box-sizing: border-box; font-size: inherit; diff --git a/src/app/components/ResponsiveLayer/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/ResponsiveLayer/__tests__/__snapshots__/index.test.tsx.snap new file mode 100644 index 0000000000..2f9189ab60 --- /dev/null +++ b/src/app/components/ResponsiveLayer/__tests__/__snapshots__/index.test.tsx.snap @@ -0,0 +1,33 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` should match snapshot 1`] = ` +.c0 { + font-family: Rubik; + font-size: 18px; + line-height: 24px; + background-color: #ffffff; + color: #444444; + box-sizing: border-box; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +
+`; diff --git a/src/app/components/ResponsiveLayer/__tests__/index.test.tsx b/src/app/components/ResponsiveLayer/__tests__/index.test.tsx new file mode 100644 index 0000000000..a2df7146ae --- /dev/null +++ b/src/app/components/ResponsiveLayer/__tests__/index.test.tsx @@ -0,0 +1,27 @@ +import { render } from '@testing-library/react' +import { Layer } from 'grommet' +import * as React from 'react' +import { ThemeProvider } from 'styles/theme/ThemeProvider' +import { Provider } from 'react-redux' +import { configureAppStore } from 'store/configureStore' + +const renderComponent = store => + render( + + + + + , + ) + +describe('', () => { + let store: ReturnType + + beforeEach(() => { + store = configureAppStore() + }) + it('should match snapshot', () => { + const component = renderComponent(store) + expect(component.container.firstChild).toMatchSnapshot() + }) +}) diff --git a/src/app/components/Sidebar/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Sidebar/__tests__/__snapshots__/index.test.tsx.snap index 56275801a2..d17a76152c 100644 --- a/src/app/components/Sidebar/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Sidebar/__tests__/__snapshots__/index.test.tsx.snap @@ -317,6 +317,11 @@ exports[` should match snapshot 1`] = ` width: 24px; } +.c4 { + font-size: 18px; + line-height: 24px; +} + .c9 { display: inline-block; box-sizing: border-box; @@ -338,6 +343,26 @@ exports[` should match snapshot 1`] = ` text-align: inherit; } +.c9:focus:not(:focus-visible) { + outline: none; + box-shadow: none; +} + +.c9:focus:not(:focus-visible) > circle, +.c9:focus:not(:focus-visible) > ellipse, +.c9:focus:not(:focus-visible) > line, +.c9:focus:not(:focus-visible) > path, +.c9:focus:not(:focus-visible) > polygon, +.c9:focus:not(:focus-visible) > polyline, +.c9:focus:not(:focus-visible) > rect { + outline: none; + box-shadow: none; +} + +.c9:focus:not(:focus-visible)::-moz-focus-inner { + border: 0; +} + .c16 { display: inline-block; box-sizing: border-box; @@ -376,9 +401,24 @@ exports[` should match snapshot 1`] = ` border: 0; } -.c4 { - font-size: 18px; - line-height: 24px; +.c16:focus:not(:focus-visible) { + outline: none; + box-shadow: none; +} + +.c16:focus:not(:focus-visible) > circle, +.c16:focus:not(:focus-visible) > ellipse, +.c16:focus:not(:focus-visible) > line, +.c16:focus:not(:focus-visible) > path, +.c16:focus:not(:focus-visible) > polygon, +.c16:focus:not(:focus-visible) > polyline, +.c16:focus:not(:focus-visible) > rect { + outline: none; + box-shadow: none; +} + +.c16:focus:not(:focus-visible)::-moz-focus-inner { + border: 0; } @media only screen and (max-width:768px) { diff --git a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap index 9b484e92a0..6cb9ae3df2 100644 --- a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap @@ -1,3 +1,57 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` should match snapshot 1`] = `null`; +exports[` should match snapshot 1`] = ` +.c0 { + font-family: Rubik; + font-size: 18px; + line-height: 24px; + background-color: #ffffff; + color: #444444; + box-sizing: border-box; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +@media only screen and (max-width:768px) { + +} + +
+`; diff --git a/src/app/components/Toolbar/Features/AccountSelector/__tests__/index.test.tsx b/src/app/components/Toolbar/Features/AccountSelector/__tests__/index.test.tsx index 26e78ec3a5..6c03d71351 100644 --- a/src/app/components/Toolbar/Features/AccountSelector/__tests__/index.test.tsx +++ b/src/app/components/Toolbar/Features/AccountSelector/__tests__/index.test.tsx @@ -3,13 +3,16 @@ import { WalletType } from 'app/state/wallet/types' import * as React from 'react' import { Provider } from 'react-redux' import { configureAppStore } from 'store/configureStore' +import { ThemeProvider } from 'styles/theme/ThemeProvider' import { AccountSelector } from '..' const renderComponent = store => render( - {}} /> + + {}} /> + , ) diff --git a/src/app/components/Toolbar/Features/NetworkSelector/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Toolbar/Features/NetworkSelector/__tests__/__snapshots__/index.test.tsx.snap index b730543614..6aa965d56b 100644 --- a/src/app/components/Toolbar/Features/NetworkSelector/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Toolbar/Features/NetworkSelector/__tests__/__snapshots__/index.test.tsx.snap @@ -60,6 +60,11 @@ exports[` should match snapshot 1`] = ` width: 12px; } +.c4 { + font-size: 18px; + line-height: 24px; +} + .c0 { display: inline-block; box-sizing: border-box; @@ -104,9 +109,24 @@ exports[` should match snapshot 1`] = ` border: 0; } -.c4 { - font-size: 18px; - line-height: 24px; +.c0:focus:not(:focus-visible) { + outline: none; + box-shadow: none; +} + +.c0:focus:not(:focus-visible) > circle, +.c0:focus:not(:focus-visible) > ellipse, +.c0:focus:not(:focus-visible) > line, +.c0:focus:not(:focus-visible) > path, +.c0:focus:not(:focus-visible) > polygon, +.c0:focus:not(:focus-visible) > polyline, +.c0:focus:not(:focus-visible) > rect { + outline: none; + box-shadow: none; +} + +.c0:focus:not(:focus-visible)::-moz-focus-inner { + border: 0; }