From 161b0976baa305669ca5335ff061da687524591d Mon Sep 17 00:00:00 2001 From: apanizo Date: Tue, 12 Jun 2018 12:03:52 +0200 Subject: [PATCH] WA-234 Fix tests after unpgrading material ui --- src/routes/safe/test/testMultisig.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/safe/test/testMultisig.js b/src/routes/safe/test/testMultisig.js index 8e469410..45360b98 100644 --- a/src/routes/safe/test/testMultisig.js +++ b/src/routes/safe/test/testMultisig.js @@ -80,12 +80,12 @@ export const expandTransactionOf = async ( ) => { const paragraphs = getTagFromTransaction(SafeDom, 'p') TestUtils.Simulate.click(paragraphs[2]) // expanded - await sleep(1000) // Time to expand + await sleep(2500) // Time to expand const paragraphsExpanded = getTagFromTransaction(SafeDom, 'p') const threshold = paragraphsExpanded[5] expect(threshold.innerHTML).toContain(`confirmation${safeThreshold === 1 ? '' : 's'} needed`) TestUtils.Simulate.click(threshold) // expanded - await sleep(1000) // Time to expand + await sleep(2500) // Time to expand expect(paragraphsExpanded.length).toBe(paragraphs.length + numOwners) } @@ -96,10 +96,11 @@ export const getTransactionFromReduxStore = (store: Store, address: } export const confirmOwners = async (SafeDom: React$Component, ...statusses: string[]) => { - const paragraphsWithOwners = getTagFromTransaction(SafeDom, 'h3') + const paragraphsWithOwners = getTagFromTransaction(SafeDom, 'span') for (let i = 0; i < statusses.length; i += 1) { const ownerIndex = i + 6 const ownerParagraph = paragraphsWithOwners[ownerIndex].innerHTML + expect(statusses[i]).toEqual(ownerParagraph) } }