Skip to content

Commit a69a435

Browse files
committed
wait for rendered list
1 parent 52937b9 commit a69a435

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ describe('Custom Questions - Studio Mode', () => {
2222
// Click to open the dropdown
2323
cy.get('.v-select').click();
2424

25+
// Wait for Vuetify menu overlay to render
26+
cy.get('.v-overlay--active .v-list', { timeout: 10000 }).should('be.visible');
27+
2528
// Verify custom question types appear in the dropdown menu
2629
cy.get('.v-list-item').contains('SimpleTextQuestion').should('be.visible');
2730
cy.get('.v-list-item').contains('MultipleChoiceQuestion').should('be.visible');
@@ -40,6 +43,9 @@ describe('Custom Questions - Studio Mode', () => {
4043
// Click to open the dropdown
4144
cy.get('.v-select').click();
4245

46+
// Wait for Vuetify menu overlay to render
47+
cy.get('.v-overlay--active .v-list', { timeout: 10000 }).should('be.visible');
48+
4349
// Select SimpleTextQuestion from the dropdown
4450
cy.get('.v-list-item').contains('SimpleTextQuestion').click();
4551

0 commit comments

Comments
 (0)