chore: format data-attribute and adjust test accordinly

pull/5911/head
k3yi0 2022-05-02 12:14:05 +02:00
parent 4918aba9d9
commit 7f5e8c09f7
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ describe('Use Dashboards', () => {
cy.getByTestID('dashboard-filter--input').type('Empty')
cy.getByTestID('dashboard-panel').should('have.text', `Looks like you dont have any dashboards`)
cy.getByTestID('dashboard-filter--input').clear().type('Dashboard')
cy.getByTestID('Reader Dashboard').click()
cy.getByTestID('reader-dashboard').click()
cy.get('.dashboard-empty--menu').should('not.exist')
cy.getByTestID('add-cell').should('not.exist')
cy.getByTestID('show-variables--button').click()

View File

@ -62,7 +62,7 @@ class DashboardsTable extends PureComponent<Props> {
<td>
<Link
to={`${dashboardLink}/dashboards/${dashboard.id}`}
data-test={`${dashboard.name}`}
data-test={`${dashboard.name.replace(/\s/g, '-').toLowerCase()}`}
>
{dashboard.name}
</Link>