Skip to content

Commit aebb83b

Browse files
committed
add flush step to write changes to course json
1 parent 6b31712 commit aebb83b

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

packages/cli/cypress/e2e/custom-questions-studio.cy.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,16 @@ describe('Custom Questions - Studio Mode', () => {
6262
cy.get('[data-cy="course-card"]').first().contains('SimpleTextQuestionView');
6363
});
6464

65-
// it('should flush changes to static files', () => {
66-
// // Flush button is in the app bar (top of any page)
67-
// cy.visit('http://localhost:7174/browse');
65+
it('should flush changes to static files', () => {
66+
// Flush button is in the app bar (top of any page)
67+
cy.visit('http://localhost:7174/');
6868

69-
// // Find and click "Flush to Static" button in app bar
70-
// cy.contains('button', 'Flush to Static', { timeout: 10000 }).should('be.visible').click();
69+
// Find and click "Flush to Static" button in app bar
70+
cy.contains('button', 'Flush to Static', { timeout: 10000 }).should('be.visible').click();
7171

72-
// // Wait for success dialog to appear
73-
// cy.contains('Course successfully saved to static files!', { timeout: 30000 }).should(
74-
// 'be.visible'
75-
// );
76-
77-
// // Close the dialog
78-
// cy.contains('button', 'Close').click();
79-
// });
72+
// Wait for success dialog to appear
73+
cy.contains('Course successfully saved to static files!', { timeout: 30000 }).should(
74+
'be.visible'
75+
);
76+
});
8077
});

0 commit comments

Comments
 (0)