fix load and create safe test: remove memoryHistory because it doesnt update window
This commit is contained in:
parent
bf3ade5209
commit
4c5143f228
|
@ -1,5 +1,5 @@
|
|||
// @flow
|
||||
import { createBrowserHistory, createMemoryHistory } from 'history'
|
||||
import { createBrowserHistory } from 'history'
|
||||
import { connectRouter, routerMiddleware } from 'connected-react-router'
|
||||
import {
|
||||
combineReducers, createStore, applyMiddleware, compose, type Reducer, type Store,
|
||||
|
@ -14,7 +14,7 @@ import transactions, {
|
|||
TRANSACTIONS_REDUCER_ID,
|
||||
} from '~/routes/safe/store/reducer/transactions'
|
||||
|
||||
export const history = process.env.NODE_ENV === 'test' ? createMemoryHistory() : createBrowserHistory()
|
||||
export const history = createBrowserHistory()
|
||||
|
||||
// eslint-disable-next-line
|
||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
|
||||
|
|
|
@ -58,7 +58,6 @@ describe('DOM > Feature > LOAD a safe', () => {
|
|||
fireEvent.change(safeNameInput, { target: { value: 'A Safe To Load' } })
|
||||
fireEvent.change(safeAddressInput, { target: { value: address } })
|
||||
await sleep(400)
|
||||
|
||||
// Click next
|
||||
fireEvent.submit(form)
|
||||
await sleep(400)
|
||||
|
|
Loading…
Reference in New Issue