Commit aa7d2c6a by Torkel Ödegaard Committed by GitHub

E2E: Fixed e2e test issue due to change in testdata scenario change logic (#23774)

parent 49a90cd7
...@@ -88,8 +88,6 @@ export class TestDataQueryCtrl extends QueryCtrl { ...@@ -88,8 +88,6 @@ export class TestDataQueryCtrl extends QueryCtrl {
scenarioChanged() { scenarioChanged() {
this.scenario = _.find(this.scenarioList, { id: this.target.scenarioId }); 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') { if (this.target.scenarioId === 'manual_entry') {
this.target.points = this.target.points || []; this.target.points = this.target.points || [];
...@@ -121,6 +119,9 @@ export class TestDataQueryCtrl extends QueryCtrl { ...@@ -121,6 +119,9 @@ export class TestDataQueryCtrl extends QueryCtrl {
delete this.target.stringInput; delete this.target.stringInput;
} }
this.target.stringInput = this.scenario.stringInput ?? undefined;
this.showLabels = showLabelsFor.includes(this.target.scenarioId);
this.refresh(); this.refresh();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment