Horde: Default all tests/suite on when selecting automation project

#jira none
#skipci
#preflight none
#rnx

[CL 25200323 by Josh Engebretson in ue5-main branch]
This commit is contained in:
Josh Engebretson
2023-04-26 12:10:51 -04:00
parent 90336c015a
commit 578fc3a366

View File

@@ -58,26 +58,25 @@ export class TestDataHandler {
this.state.streams = undefined;
}
//this.state.tests = undefined;
//this.state.suites = undefined;
const tests = this.streamTests;
this.state.tests = this.state.tests?.filter(test => !!tests.find(t => t.name === test));
if (!this.state.tests?.length) {
this.state.tests = undefined;
}
const suites = this.streamSuites;
this.state.suites = this.state.suites?.filter(suite => !!suites.find(s => s.name === suite));
if (!this.state.suites?.length) {
this.state.suites = undefined;
}
if (initStreams) {
const streams = this.getAutomationStreams(automation);
this.state.streams = streams.map(s => s);
}
this.state.tests = undefined;
this.state.suites = undefined;
const tests = this.streamTests;
if (tests?.length) {
this.state.tests = tests.map(t => t.name);
}
const suites = this.streamSuites;
if (suites?.length) {
this.state.suites = suites.map(t => t.name);
}
}
if (this.updateSearch()) {