Skip to content

Commit

Permalink
test: refactor after PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Apr 11, 2024
1 parent 9ffab27 commit d171fee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cypress/elements/dimensionModal/dataDimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const expectDataTypeToBe = (type) =>
cy.getBySel(dataTypesSelectButtonEl).should('contain', type)

export const expectDataTypeSelectHelpToContain = (text) =>
cy.getBySel(dataTypesSelectHelpEl).should('contain', text)
cy.getBySel(dataTypesSelectHelpEl).should('have.text', text)

export const expectGroupSelectToNotBeVisible = () =>
cy.getBySel(groupSelectButtonEl).should('not.exist')
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/visTypes/outlierTable.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe(['>=41'], 'using an Outlier table visualization', () => {
cy.log('has default sorting on Value descending')
cy.getBySel('outlier-table')
.findBySel('table-header')
.contains('Value')
.containsExact('Value')
.closest('[data-test="table-header"]')
.find('button')
.should('have.attr', 'title', 'Sort ascending by Value and update')
Expand All @@ -178,14 +178,14 @@ describe(['>=41'], 'using an Outlier table visualization', () => {

cy.getBySel('outlier-table')
.findBySel('table-header')
.contains('Value')
.containsExact('Value')
.closest('[data-test="table-header"]')
.find('button')
.should('have.attr', 'title', 'Sort descending by Value and update')

cy.getBySel('outlier-table')
.findBySel('table-header')
.contains('Min')
.containsExact('Min')
.closest('[data-test="table-header"]')
.find('button')
.should('have.attr', 'title', 'Sort ascending by Min and update')
Expand Down

0 comments on commit d171fee

Please sign in to comment.