fix dev config and tests

This commit is contained in:
Mikhail Mikheev 2019-06-13 15:32:22 +04:00
parent ed3c876dbe
commit 1c8594d696
2 changed files with 7 additions and 4 deletions

View File

@ -102,8 +102,9 @@ module.exports = {
loader: 'css-loader',
options: {
importLoaders: 1,
modules: true,
localIdentName: '[name]__[local]___[hash:base64:5]',
modules: {
localIdentName: '[name]__[local]___[hash:base64:5]',
},
},
},
{

View File

@ -81,10 +81,12 @@ const deploySafe = async (createSafeForm: any, threshold: number, numOwners: num
fireEvent.change(ownerAddressInput, { target: { value: accounts[i] } })
}
fireEvent.submit(form)
await sleep(400)
await sleep(600)
// Fill Threshold
const thresholdSelect = createSafeForm.getByRole('button')
// The test is fragile here, MUI select btn is hard to find
const thresholdSelect = createSafeForm.getAllByRole('button')[1]
fireEvent.click(thresholdSelect)
const thresholdOptions = createSafeForm.getAllByRole('option')
fireEvent.click(thresholdOptions[numOwners - 1])