mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
E2E: Fixed e2e test issue due to change in testdata scenario change logic (#23774)
This commit is contained in:
parent
49a90cd764
commit
aa7d2c6af3
@ -88,8 +88,6 @@ export class TestDataQueryCtrl extends QueryCtrl {
|
||||
|
||||
scenarioChanged() {
|
||||
this.scenario = _.find(this.scenarioList, { id: this.target.scenarioId });
|
||||
this.target.stringInput = this.scenario.stringInput;
|
||||
this.showLabels = showLabelsFor.includes(this.target.scenarioId);
|
||||
|
||||
if (this.target.scenarioId === 'manual_entry') {
|
||||
this.target.points = this.target.points || [];
|
||||
@ -121,6 +119,9 @@ export class TestDataQueryCtrl extends QueryCtrl {
|
||||
delete this.target.stringInput;
|
||||
}
|
||||
|
||||
this.target.stringInput = this.scenario.stringInput ?? undefined;
|
||||
this.showLabels = showLabelsFor.includes(this.target.scenarioId);
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user