propagate --onlyChanged through UI
This commit is contained in:
parent
2251e6a6d2
commit
7bb2780760
|
|
@ -39,6 +39,7 @@ export type TraceViewerRedirectOptions = {
|
|||
args?: string[];
|
||||
grep?: string;
|
||||
grepInvert?: string;
|
||||
onlyChanged?: string;
|
||||
project?: string[];
|
||||
workers?: number | string;
|
||||
headed?: boolean;
|
||||
|
|
@ -123,6 +124,8 @@ export async function installRootRedirect(server: HttpServer, traceUrls: string[
|
|||
params.append('grep', options.grep);
|
||||
if (options.grepInvert)
|
||||
params.append('grepInvert', options.grepInvert);
|
||||
if (options.onlyChanged)
|
||||
params.append('onlyChanged', options.onlyChanged);
|
||||
for (const project of options.project || [])
|
||||
params.append('project', project);
|
||||
if (options.workers)
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ export interface TestServerInterface {
|
|||
locations?: string[];
|
||||
grep?: string;
|
||||
grepInvert?: string;
|
||||
onlyChanged?: string;
|
||||
testIds?: string[];
|
||||
headed?: boolean;
|
||||
workers?: number | string;
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ async function runTests(args: string[], opts: { [key: string]: any }) {
|
|||
args,
|
||||
grep: opts.grep as string | undefined,
|
||||
grepInvert: opts.grepInvert as string | undefined,
|
||||
onlyChanged: getOnlyChangedArg(opts.onlyChanged),
|
||||
project: opts.project || undefined,
|
||||
headed: opts.headed,
|
||||
reporter: Array.isArray(opts.reporter) ? opts.reporter : opts.reporter ? [opts.reporter] : undefined,
|
||||
|
|
|
|||
|
|
@ -335,6 +335,7 @@ class TestServerDispatcher implements TestServerInterface {
|
|||
config.cliArgs = params.locations || [];
|
||||
config.cliGrep = params.grep;
|
||||
config.cliGrepInvert = params.grepInvert;
|
||||
config.cliOnlyChanged = params.onlyChanged;
|
||||
config.cliProjectFilter = params.projects?.length ? params.projects : undefined;
|
||||
config.testIdMatcher = testIdSet ? id => testIdSet.has(id) : undefined;
|
||||
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ const queryParams = {
|
|||
args: searchParams.getAll('arg'),
|
||||
grep: searchParams.get('grep') || undefined,
|
||||
grepInvert: searchParams.get('grepInvert') || undefined,
|
||||
onlyChanged: searchParams.get('onlyChanged') || undefined,
|
||||
projects: searchParams.getAll('project'),
|
||||
workers: searchParams.get('workers') || undefined,
|
||||
timeout: searchParams.has('timeout') ? +searchParams.get('timeout')! : undefined,
|
||||
|
|
@ -282,6 +283,7 @@ export const UIModeView: React.FC<{}> = ({
|
|||
locations: queryParams.args,
|
||||
grep: queryParams.grep,
|
||||
grepInvert: queryParams.grepInvert,
|
||||
onlyChanged: queryParams.onlyChanged,
|
||||
testIds: [...testIds],
|
||||
projects: [...projectFilters].filter(([_, v]) => v).map(([p]) => p),
|
||||
workers: queryParams.workers,
|
||||
|
|
|
|||
Loading…
Reference in a new issue