refactor(cypress): use graph view types test ids
parent
0f1e0e112c
commit
ebf58f2ca1
|
@ -199,7 +199,7 @@ describe('Dashboard', () => {
|
|||
.contains('Graph')
|
||||
.click()
|
||||
.then(() => {
|
||||
cy.getByTestID('dropdown-item')
|
||||
cy.getByTestID('view-type--table')
|
||||
.contains('Table')
|
||||
.should('have.length', 1)
|
||||
.click()
|
||||
|
|
|
@ -37,11 +37,9 @@ describe('DataExplorer', () => {
|
|||
|
||||
describe('numeric input using custom bin sizes in Histograms', () => {
|
||||
beforeEach(() => {
|
||||
cy.getByTestID('page-header--right').within(() => {
|
||||
cy.getByTestID('dropdown').click()
|
||||
cy.get('#histogram').click()
|
||||
cy.getByTestID('cog-cell--button').click()
|
||||
})
|
||||
cy.getByTestID('view-type--dropdown').click()
|
||||
cy.getByTestID(`view-type--histogram`).click()
|
||||
cy.getByTestID('cog-cell--button').click()
|
||||
})
|
||||
it('should put input field in error status and stay in error status when input is invalid or empty', () => {
|
||||
cy.get('.view-options').within(() => {
|
||||
|
@ -70,11 +68,9 @@ describe('DataExplorer', () => {
|
|||
|
||||
describe('numeric input validation when changing bin sizes in Heat Maps', () => {
|
||||
beforeEach(() => {
|
||||
cy.getByTestID('page-header--right').within(() => {
|
||||
cy.getByTestID('dropdown').click()
|
||||
cy.get('#heatmap').click()
|
||||
cy.getByTestID('cog-cell--button').click()
|
||||
})
|
||||
cy.getByTestID('view-type--dropdown').click()
|
||||
cy.getByTestID(`view-type--heatmap`).click()
|
||||
cy.getByTestID('cog-cell--button').click()
|
||||
})
|
||||
it('should put input field in error status and stay in error status when input is invalid or empty', () => {
|
||||
cy.get('.view-options').within(() => {
|
||||
|
@ -122,11 +118,9 @@ describe('DataExplorer', () => {
|
|||
|
||||
describe('numeric input validation when changing number of decimal places in Single Stat', () => {
|
||||
beforeEach(() => {
|
||||
cy.getByTestID('page-header--right').within(() => {
|
||||
cy.getByTestID('dropdown').click()
|
||||
cy.get('#single-stat').click()
|
||||
cy.getByTestID('cog-cell--button').click()
|
||||
})
|
||||
cy.getByTestID('view-type--dropdown').click()
|
||||
cy.getByTestID(`view-type--single-stat`).click()
|
||||
cy.getByTestID('cog-cell--button').click()
|
||||
})
|
||||
it('should put input field in error status and stay in error status when input is invalid or empty', () => {
|
||||
cy.get('.view-options').within(() => {
|
||||
|
|
Loading…
Reference in New Issue