Commit 25e5534
test/gui: write window screenshots with grabScreenshot(path)
The previous run captured all screens but uploaded no artifact: the code
used the deprecated grabWidget() and called Image.save(dir, name) with two
arguments, but Squish's Image.save() takes a single full path, so nothing
was written. Switch to object.grabScreenshot(path) and verify the file
exists, falling back to a desktop capture (which is then also verified) so a
run can never report success while producing no files.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>1 parent 111c42e commit 25e5534
1 file changed
Lines changed: 11 additions & 5 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
107 | 115 | | |
108 | | - | |
109 | | - | |
110 | 116 | | |
111 | 117 | | |
112 | | - | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
0 commit comments