Skip to content

Commit

Permalink
fix locator
Browse files Browse the repository at this point in the history
  • Loading branch information
sunker committed Jan 27, 2025
1 parent bc43151 commit db03dba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export class DataSourcePicker extends GrafanaPage {
* Sets the data source picker to the provided name
*/
async set(name: string) {
let datasourcePicker = this.ctx.page.getByTestId(this.ctx.selectors.components.DataSourcePicker.inputV2);
let datasourcePicker = (this.root || this.ctx.page).getByTestId(
this.ctx.selectors.components.DataSourcePicker.inputV2
);

if (semver.lt(this.ctx.grafanaVersion, '10.1.0')) {
datasourcePicker = this.getByGrafanaSelector(this.ctx.selectors.components.DataSourcePicker.container, {
Expand Down

0 comments on commit db03dba

Please sign in to comment.