fix(2165): spacing tweak to expected proposal outcome text (#2166)

This commit is contained in:
Sam Keen 2022-11-18 10:05:06 +00:00 committed by GitHub
parent 72cec2ebcb
commit 5922994a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -80,7 +80,7 @@ it('Proposal open - renders will fail state if the proposal will fail', async ()
};
renderComponent({ proposal: failedProposal });
expect(await screen.findByText('Currently expected to')).toBeInTheDocument();
expect(await screen.findByText('fail')).toBeInTheDocument();
expect(await screen.findByText('fail.')).toBeInTheDocument();
});
it('Proposal open - renders will pass state if the proposal will pass', async () => {
@ -88,7 +88,7 @@ it('Proposal open - renders will pass state if the proposal will pass', async ()
renderComponent({ proposal });
expect(await screen.findByText('Currently expected to')).toBeInTheDocument();
expect(await screen.findByText('pass')).toBeInTheDocument();
expect(await screen.findByText('pass.')).toBeInTheDocument();
});
it('Proposal enacted - renders vote passed and time since enactment', async () => {
@ -153,7 +153,7 @@ it('Proposal waiting for node vote - will pass - renders if the vote will pass
await screen.findByText('Waiting for nodes to validate asset.')
).toBeInTheDocument();
expect(await screen.findByText('Currently expected to')).toBeInTheDocument();
expect(await screen.findByText('fail')).toBeInTheDocument();
expect(await screen.findByText('fail.')).toBeInTheDocument();
});
it('Proposal waiting for node vote - will fail - renders if the vote will pass and status', async () => {
@ -169,7 +169,7 @@ it('Proposal waiting for node vote - will fail - renders if the vote will pass a
await screen.findByText('Waiting for nodes to validate asset.')
).toBeInTheDocument();
expect(await screen.findByText('Currently expected to')).toBeInTheDocument();
expect(await screen.findByText('pass')).toBeInTheDocument();
expect(await screen.findByText('pass.')).toBeInTheDocument();
});
it('Proposal failed - renders vote failed reason and vote closed ago', async () => {

View File

@ -26,16 +26,16 @@ const WillPass = ({
return (
<>
{children}
<StatusPass>{t('pass')}</StatusPass>
<span>{t('finalOutcomeMayDiffer')}</span>
<StatusPass>{t('pass')}.</StatusPass>
<span className="ml-2">{t('finalOutcomeMayDiffer')}</span>
</>
);
} else {
return (
<>
{children}
<StatusFail>{t('fail')}</StatusFail>
<span>{t('finalOutcomeMayDiffer')}</span>
<StatusFail>{t('fail')}.</StatusFail>
<span className="ml-2">{t('finalOutcomeMayDiffer')}</span>
</>
);
}