Skip to content

Commit

Permalink
adjusting the conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
tolzhabayev committed Nov 28, 2024
1 parent 0599779 commit b34b8cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-e2e/src/models/pages/DashboardPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ export class DashboardPage extends GrafanaPage {
}
if (semver.gte(this.ctx.grafanaVersion, '8.0.0') && semver.lte(this.ctx.grafanaVersion, '8.5.0')) {
await this.getByGrafanaSelector('Add panel').click();
} else {
await this.getByGrafanaSelector(pages.AddDashboard.addNewPanel).click();
}
await this.getByGrafanaSelector(pages.AddDashboard.addNewPanel).click();
}

const panelId = await this.ctx.page.evaluate(() => {
Expand Down

0 comments on commit b34b8cc

Please sign in to comment.