mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(challenge modal): rename iframe completion button
This commit is contained in:
@@ -318,7 +318,10 @@ describe('ChallengeModal', () => {
|
||||
'https://mintpass.org',
|
||||
);
|
||||
|
||||
await clickButton('Close challenge');
|
||||
const doneButton = Array.from(container.querySelectorAll('button')).find((candidate) => candidate.textContent === 'Done');
|
||||
expect(doneButton?.getAttribute('aria-label')).toBe('Finish challenge');
|
||||
|
||||
await clickButton('Done');
|
||||
expect(publication.publishChallengeAnswers).toHaveBeenCalledWith(['']);
|
||||
expect(testState.removeChallengeMock).toHaveBeenCalledOnce();
|
||||
});
|
||||
|
||||
@@ -291,7 +291,9 @@ const IframeChallenge = ({
|
||||
</div>
|
||||
<div className={`${styles.challengeFooter} ${styles.iframeFooter}`}>
|
||||
<div className={styles.iframeCloseButton}>
|
||||
<button onClick={onDone}>Close challenge</button>
|
||||
<button aria-label='Finish challenge' onClick={onDone}>
|
||||
Done
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user