Skip to content

Commit 8ea6299

Browse files
fix: increase default command timeout and improve tooltip visibility in behaviors tests
1 parent eada575 commit 8ea6299

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
env: {
2929
CYPRESS_TEST: true,
3030
},
31-
defaultCommandTimeout: 5000,
31+
defaultCommandTimeout: 15000,
3232
includeShadowDom: true,
3333
chromeWebSecurity: false,
3434
watchForFileChanges: true,

cypress/e2e/covisualization/behaviors-covisualization.spec.cy.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ describe('Behaviors tests for Khiops Covisualization', () => {
120120
force: true,
121121
});
122122

123-
cy.wait(1000);
124-
125123
// Check table values
126124
cy.get('#unfold-hierarchy-table').contains('341');
127125
cy.get('#unfold-hierarchy-table').contains('15');
@@ -266,6 +264,11 @@ describe('Behaviors tests for Khiops Covisualization', () => {
266264
})
267265
.click(1, 1, { force: true }); // Force coords to click on the matrix
268266

267+
// Re-trigger mousemove after click: the click can dismiss the tooltip temporarily
268+
cy.get('#matrix-selected')
269+
.should('be.visible')
270+
.trigger('mousemove', { position: 'topLeft' });
271+
269272
// Check values
270273
cy.get('.matrix-tooltip-comp').contains('A10');
271274
cy.get('#cluster-distribution-1').contains('A10');

0 commit comments

Comments
 (0)