Skip to content

Commit

Permalink
e2e: dataviz, selector has changed w/ new version
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault authored and github-actions[bot] committed Dec 13, 2024
1 parent 3fea435 commit 0567912
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions tests/end2end/cypress/integration/dataviz-ghaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ describe('Dataviz tests', function () {

cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer')
.should('have.length', 1)
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot')
.should('have.length', 1)
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars')
.should('have.length', 1)
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points')
.should('have.length', 1)
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// Test - Bar bakeries by municipalities
Expand All @@ -79,13 +79,13 @@ describe('Dataviz tests', function () {

cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer')
.should('have.length', 1)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot')
.should('have.length', 1)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars')
.should('have.length', 1)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points')
.should('have.length', 1)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// Test - Pie bakeries by municipalities
Expand All @@ -105,17 +105,17 @@ describe('Dataviz tests', function () {

cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer')
.should('have.length', 1)
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot')
.should('have.length', 1)
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars')
.should('have.length', 1)
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points')
.should('have.length', 1)
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// Never filtered plot
cy.get('#dataviz_plot_4 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_4 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// Click back to the first tab
Expand All @@ -132,9 +132,9 @@ describe('Dataviz tests', function () {
// Wait for visible graphics updated 2 plots are visible
cy.wait(['@getPlot', '@getPlot'])

cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 1)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 1)

// Activate the Second tab dock to update one graphic only (the other one has the trigger_filter: false
Expand All @@ -143,10 +143,10 @@ describe('Dataviz tests', function () {

cy.wait(['@getPlot'])
// This plot is filtered
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 1)
// This plot must not have been refreshed
cy.get('#dataviz_plot_4 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_4 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// Go back to the first tab
Expand All @@ -163,9 +163,9 @@ describe('Dataviz tests', function () {
// Wait for visible graphics updated 2 plots are visible
cy.wait(['@getPlot', '@getPlot'])

cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 1)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 1)

// Activate the Second tab dock to update one graphic
Expand All @@ -174,7 +174,7 @@ describe('Dataviz tests', function () {

cy.wait(['@getPlot'])

cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 1)

// Go back to the first tab
Expand All @@ -189,15 +189,15 @@ describe('Dataviz tests', function () {
// Wait for map updated, because plots are in cache
cy.wait(['@getMap', '@getMap'])

cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_0 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_1 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// Activate the Second tab dock to update one graphic
cy.get('#dataviz > #dataviz-container > #dataviz-content > div.tab-content > ul > li:nth-child(2) > a')
.click()
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.plot g.trace.bars g.points g.point')
cy.get('#dataviz_plot_3 div.svg-container svg.main-svg g.cartesianlayer g.overplot g.trace.bars g.points g.point')
.should('have.length', 10)

// This test is not really covering the dataviz capabilities for now.
Expand Down

0 comments on commit 0567912

Please sign in to comment.