Skip to content

Commit 29f563e

Browse files
committed
add filesystem verification that card data written
1 parent a252f99 commit 29f563e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,14 @@ describe('Custom Questions - Studio Mode', () => {
7373
cy.contains('Course successfully saved to static files!', { timeout: 30000 }).should(
7474
'be.visible'
7575
);
76+
77+
// Give flush operation time to complete file writes
78+
cy.wait(2000);
79+
80+
// Verify the flush created JSON files with our question content
81+
cy.exec('find . -name "*.json" -exec grep -l "What is 2+2?" {} \\;').then((result) => {
82+
expect(result.stdout.trim()).to.not.be.empty;
83+
expect(result.code).to.equal(0);
84+
});
7685
});
7786
});

0 commit comments

Comments
 (0)