Skip to content

Commit

Permalink
proper selector value
Browse files Browse the repository at this point in the history
  • Loading branch information
tolzhabayev committed Nov 29, 2024
1 parent b34b8cc commit f816d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-e2e/src/models/pages/DashboardPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class DashboardPage extends GrafanaPage {
await this.getByGrafanaSelector(components.PageToolbar.item('Add panel')).click();
}
if (semver.gte(this.ctx.grafanaVersion, '8.0.0') && semver.lte(this.ctx.grafanaVersion, '8.5.0')) {
await this.getByGrafanaSelector('Add panel').click();
await this.getByGrafanaSelector('Add new panel').click();
} else {
await this.getByGrafanaSelector(pages.AddDashboard.addNewPanel).click();
}
Expand Down

0 comments on commit f816d3c

Please sign in to comment.