Skip to content

Commit

Permalink
chore(test): make output folder customizable (podman-desktop#9349)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lazar <[email protected]>
  • Loading branch information
cbr7 authored Oct 12, 2024
1 parent d7acec1 commit 4bda677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/playwright/src/runner/podman-desktop-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Runner {
this._running = false;
this._runnerOptions = runnerOptions;
this._profile = this._runnerOptions._profile;
this._testOutput = join('tests', 'playwright', 'output', this._profile);
this._testOutput = join(this._runnerOptions._customOutputFolder, this._profile);
this._customFolder = join(this._testOutput, this._runnerOptions._customFolder);
this._videoAndTraceName = undefined;

Expand Down
4 changes: 4 additions & 0 deletions tests/playwright/src/runner/runner-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
export class RunnerOptions {
public readonly _profile: string;
public readonly _customFolder: string;
public readonly _customOutputFolder: string;
public readonly _openDevTools: string;
public readonly _autoUpdate: boolean;
public readonly _autoCheckUpdates: boolean;
Expand All @@ -30,6 +31,7 @@ export class RunnerOptions {
constructor({
profile = '',
customFolder = 'podman-desktop',
customOutputFolder = 'tests/playwright/output/',
openDevTools = 'none',
autoUpdate = true,
autoCheckUpdates = true,
Expand All @@ -40,6 +42,7 @@ export class RunnerOptions {
}: {
profile?: string;
customFolder?: string;
customOutputFolder?: string;
openDevTools?: string;
autoUpdate?: boolean;
autoCheckUpdates?: boolean;
Expand All @@ -50,6 +53,7 @@ export class RunnerOptions {
} = {}) {
this._profile = profile;
this._customFolder = customFolder;
this._customOutputFolder = customOutputFolder;
this._openDevTools = openDevTools;
this._autoUpdate = autoUpdate;
this._autoCheckUpdates = autoCheckUpdates;
Expand Down

0 comments on commit 4bda677

Please sign in to comment.