Skip to content

Commit ab995f1

Browse files
committed
simplify dev test for customQs...
existence of test-set text is enough to confirm e2e write, store, load
1 parent ab43344 commit ab995f1

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

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

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,24 @@
44

55
describe('Custom Questions - Dev Mode', () => {
66
it('should load dev mode successfully', () => {
7-
cy.visit('http://localhost:6173');
7+
cy.visit('http://localhost:5173');
88

99
// Verify basic page load
1010
cy.get('body').should('be.visible');
1111
});
1212

1313
it('should render flushed card in study view', () => {
14-
cy.visit('http://localhost:6173/study');
14+
cy.visit('http://localhost:5173/study');
1515

1616
// Wait for study view to load
1717
cy.get('body', { timeout: 15000 }).should('be.visible');
1818

19-
// Verify card with SimpleTextQuestionView renders
20-
cy.get('[data-viewable*="SimpleTextQuestionView"]', { timeout: 15000 })
21-
.should('exist')
22-
.and('be.visible');
23-
2419
// Verify the card content that was created in studio
25-
cy.contains('What is 2+2?').should('exist');
20+
cy.contains('What is 2+2?', { timeout: 15000 }).should('exist');
2621

2722
// Verify the input element is present (characteristic of SimpleTextQuestionView)
2823
cy.get('input[type="text"], input[placeholder*="answer"]')
2924
.should('be.visible');
3025
});
3126

32-
it('should allow interaction with the custom question', () => {
33-
cy.visit('http://localhost:6173/study');
34-
35-
// Wait for card to render
36-
cy.get('[data-viewable*="SimpleTextQuestionView"]', { timeout: 15000 })
37-
.should('exist');
38-
39-
// Type an answer
40-
cy.get('input[type="text"], input[placeholder*="answer"]')
41-
.type('4');
42-
43-
// Submit (look for submit button)
44-
cy.contains('button', /submit/i).should('be.visible');
45-
});
4627
});

0 commit comments

Comments
 (0)