File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 32
32
if : always()
33
33
run : |
34
34
. "./scripts/utils/Screenshot.ps1"
35
+ # Create the directory if it does not exist
36
+ if (!(Test-Path -Path ${{ github.workspace }}/tests/screenshots)) {
37
+ New-Item -ItemType Directory -Path ${{ github.workspace }}/tests/screenshots
38
+ }
35
39
Take-Screenshot -OutputPath ${{ github.workspace }}/tests/screenshots/ExitScreenshot.png
36
40
shell : pwsh
37
41
- name : " Upload Screenshots"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
9
9
. " $scriptPath /scripts/utils/Minimize.ps1" # To get better screenshots we need to minimize the "Administrator" CMD window
10
10
. " $scriptPath /scripts/utils/TimedMessage.ps1"
11
11
. " $scriptPath /scripts/utils/Invoke.ps1" # Function to invoke a script with a timeout
12
- . " $scriptPath /utils/Screenshot.ps1"
12
+ . " $scriptPath /scripts/ utils/Screenshot.ps1"
13
13
14
14
# Start the main timer
15
15
$mainTimer = [System.Diagnostics.Stopwatch ]::StartNew()
@@ -120,7 +120,7 @@ foreach ($folder in $folders) {
120
120
Write-Host " Created screenshot directory: $screenshotDir "
121
121
}
122
122
123
- Take- Screenshot - FileName " ${screenshotDir}${app} _{{timestamp}}.png"
123
+ Take- Screenshot - OutputPath " ${screenshotDir}${app} _{{timestamp}}.png"
124
124
}
125
125
126
126
Write-TimedMessage " Completed processing folder: $folder "
You can’t perform that action at this time.
0 commit comments