fix dev config and tests
This commit is contained in:
parent
ed3c876dbe
commit
1c8594d696
|
@ -102,10 +102,11 @@ module.exports = {
|
||||||
loader: 'css-loader',
|
loader: 'css-loader',
|
||||||
options: {
|
options: {
|
||||||
importLoaders: 1,
|
importLoaders: 1,
|
||||||
modules: true,
|
modules: {
|
||||||
localIdentName: '[name]__[local]___[hash:base64:5]',
|
localIdentName: '[name]__[local]___[hash:base64:5]',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
loader: 'postcss-loader',
|
loader: 'postcss-loader',
|
||||||
options: {
|
options: {
|
||||||
|
|
|
@ -81,10 +81,12 @@ const deploySafe = async (createSafeForm: any, threshold: number, numOwners: num
|
||||||
fireEvent.change(ownerAddressInput, { target: { value: accounts[i] } })
|
fireEvent.change(ownerAddressInput, { target: { value: accounts[i] } })
|
||||||
}
|
}
|
||||||
fireEvent.submit(form)
|
fireEvent.submit(form)
|
||||||
await sleep(400)
|
await sleep(600)
|
||||||
|
|
||||||
// Fill Threshold
|
// 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)
|
fireEvent.click(thresholdSelect)
|
||||||
const thresholdOptions = createSafeForm.getAllByRole('option')
|
const thresholdOptions = createSafeForm.getAllByRole('option')
|
||||||
fireEvent.click(thresholdOptions[numOwners - 1])
|
fireEvent.click(thresholdOptions[numOwners - 1])
|
||||||
|
|
Loading…
Reference in New Issue