mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-24 02:01:30 -05:00
fix(e2e): failing electron tests (#52495)
This commit is contained in:
@@ -38,7 +38,12 @@ const ProjectModal = ({
|
||||
<SolutionViewer challengeFiles={challengeFiles} solution={solution} />
|
||||
</Modal.Body>
|
||||
<Modal.Footer>
|
||||
<Button onClick={handleSolutionModalHide}>{t('buttons.close')}</Button>
|
||||
<Button
|
||||
data-cy='solution-viewer-close-btn'
|
||||
onClick={handleSolutionModalHide}
|
||||
>
|
||||
{t('buttons.close')}
|
||||
</Button>
|
||||
</Modal.Footer>
|
||||
</Modal>
|
||||
);
|
||||
|
||||
@@ -147,7 +147,7 @@ describe('project submission', () => {
|
||||
// TODO: if we write a test to check that the solution is visible
|
||||
// before reloading, we should include that here.
|
||||
cy.contains('Solution for');
|
||||
cy.contains('Close').click();
|
||||
cy.get(`[data-cy="solution-viewer-close-btn"]`).click();
|
||||
});
|
||||
|
||||
// Claim and view solutions on certification page
|
||||
|
||||
Reference in New Issue
Block a user