fixed eslint errors, add test for adding owner but it fails (from interface works) TBD
This commit is contained in:
parent
161820a6c5
commit
1b1ff1ea33
|
@ -1,9 +1,9 @@
|
||||||
// @flow
|
// @flow
|
||||||
import contract from 'truffle-contract'
|
import contract from 'truffle-contract'
|
||||||
import { ensureOnce } from '~/utils/singleton'
|
|
||||||
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
|
||||||
import GnosisSafeSol from '@gnosis.pm/safe-contracts/build/contracts/GnosisSafe.json'
|
import GnosisSafeSol from '@gnosis.pm/safe-contracts/build/contracts/GnosisSafe.json'
|
||||||
import ProxyFactorySol from '@gnosis.pm/safe-contracts/build/contracts/ProxyFactory.json'
|
import ProxyFactorySol from '@gnosis.pm/safe-contracts/build/contracts/ProxyFactory.json'
|
||||||
|
import { ensureOnce } from '~/utils/singleton'
|
||||||
|
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
||||||
import { calculateGasOf, calculateGasPrice } from '~/logic/wallets/ethTransactions'
|
import { calculateGasOf, calculateGasPrice } from '~/logic/wallets/ethTransactions'
|
||||||
import { ZERO_ADDRESS } from '~/logic/wallets/ethAddresses'
|
import { ZERO_ADDRESS } from '~/logic/wallets/ethAddresses'
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { renderSafeView } from '~/test/builder/safe.dom.utils'
|
||||||
import { sleep } from '~/utils/timer'
|
import { sleep } from '~/utils/timer'
|
||||||
import 'jest-dom/extend-expect'
|
import 'jest-dom/extend-expect'
|
||||||
import { SETTINGS_TAB_BTN_TESTID } from '~/routes/safe/components/Layout'
|
import { SETTINGS_TAB_BTN_TESTID } from '~/routes/safe/components/Layout'
|
||||||
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
|
||||||
import { OWNERS_SETTINGS_TAB_TEST_ID } from '~/routes/safe/components/Settings'
|
import { OWNERS_SETTINGS_TAB_TEST_ID } from '~/routes/safe/components/Settings'
|
||||||
import {
|
import {
|
||||||
RENAME_OWNER_BTN_TESTID,
|
RENAME_OWNER_BTN_TESTID,
|
||||||
|
@ -113,7 +112,7 @@ describe('DOM > Feature > Settings - Manage owners', () => {
|
||||||
|
|
||||||
it('Adds a new owner', async () => {
|
it('Adds a new owner', async () => {
|
||||||
const NEW_OWNER_NAME = 'I am a new owner'
|
const NEW_OWNER_NAME = 'I am a new owner'
|
||||||
const NEW_OWNER_ADDRESS = (await getWeb3().eth.getAccounts())[1]
|
const NEW_OWNER_ADDRESS = '0x0E329Fa8d6fCd1BA0cDA495431F1F7ca24F442c3'
|
||||||
|
|
||||||
const SafeDom = renderSafeView(store, safeAddress)
|
const SafeDom = renderSafeView(store, safeAddress)
|
||||||
await sleep(1300)
|
await sleep(1300)
|
||||||
|
@ -142,6 +141,7 @@ describe('DOM > Feature > Settings - Manage owners', () => {
|
||||||
await sleep(200)
|
await sleep(200)
|
||||||
|
|
||||||
fireEvent.click(SafeDom.getByTestId(ADD_OWNER_THRESHOLD_NEXT_BTN_TESTID))
|
fireEvent.click(SafeDom.getByTestId(ADD_OWNER_THRESHOLD_NEXT_BTN_TESTID))
|
||||||
|
await sleep(200)
|
||||||
fireEvent.click(SafeDom.getByTestId(ADD_OWNER_SUBMIT_BTN))
|
fireEvent.click(SafeDom.getByTestId(ADD_OWNER_SUBMIT_BTN))
|
||||||
await sleep(400)
|
await sleep(400)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue