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

This commit is contained in:
Torkel Ödegaard 2020-04-22 12:00:30 +02:00 committed by GitHub
parent 49a90cd764
commit aa7d2c6af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}