@testspectra/skills 1.2.32 → 1.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -179,12 +179,18 @@ collection carry the scope forward too. No behavior difference on web vs. Androi
179
179
  | `await Spectra.browser.shouldHaveClipboardText(text)` | Assert the clipboard text, polling |
180
180
  | `await Spectra.browser.getPageLoadCount(tab?)` | Loads of a tab since the test case began / the tab attached |
181
181
  | `await Spectra.browser.shouldHavePageLoadCount(n, { tab? })` | Assert a tab's load count: only the refreshed tab grew |
182
+ | `await Spectra.browser.waitForDownload({ timeout? })` | Next file the page downloads: `{ fileName, path, size, text(), rows() }` |
183
+ | `await file.shouldHaveRows(rows, { header? })` | Assert the CSV / first XLSX sheet; `header: false`: `rows` omit the header row |
184
+ | `await file.shouldContainRow(row)` | Assert one row of the file equals `row` |
185
+ | `await Spectra.browser.shouldHaveDownloaded(name \| /re/)` | Assert a download with that name completed, polling |
186
+ | `await Spectra.browser.shouldNotHaveDownloaded({ within? })` | Assert no download this test case, nor in `within` ms (1000) |
187
+ | `await Spectra.browser.shouldHaveDownloadCount(n)` | Assert `n` downloads completed |
182
188
  | `await Spectra.browser.installClock()` | Fake page clock, before the page loads |
183
189
  | `await Spectra.browser.advanceClock(ms)` | Jump the clock; timers that fall due run |
184
190
  | `await Spectra.browser.shouldHaveOpenedDialog(msg?)` | Assert a JS dialog opened (each is answered as it opens) |
185
191
  | `await Spectra.browser.shouldNotHaveOpenedDialog()` | Assert none opened, nor opens for 500ms |
186
192
 
187
- Tabs, the clock and dialogs are web only, and reset when the next test case starts: one tab, no fake clock, no dialogs recorded. Install the clock before `Spectra.navigate`: timers the current document started earlier do not move.
193
+ Tabs, the clock, dialogs and downloads are web only, and reset when the next test case starts: one tab, no fake clock, no dialogs or downloads recorded. Install the clock before `Spectra.navigate`: timers the current document started earlier do not move.
188
194
 
189
195
  ---
190
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/skills",
3
- "version": "1.2.32",
3
+ "version": "1.2.33",
4
4
  "description": "Installer & manager for modular AI agent skills that standardize TestSpectra script authoring (specs, page objects, steps, actions, hooks, fixtures, matchers)",
5
5
  "keywords": [
6
6
  "agents",
@@ -179,12 +179,18 @@ collection carry the scope forward too. No behavior difference on web vs. Androi
179
179
  | `await Spectra.browser.shouldHaveClipboardText(text)` | Assert the clipboard text, polling |
180
180
  | `await Spectra.browser.getPageLoadCount(tab?)` | Loads of a tab since the test case began / the tab attached |
181
181
  | `await Spectra.browser.shouldHavePageLoadCount(n, { tab? })` | Assert a tab's load count: only the refreshed tab grew |
182
+ | `await Spectra.browser.waitForDownload({ timeout? })` | Next file the page downloads: `{ fileName, path, size, text(), rows() }` |
183
+ | `await file.shouldHaveRows(rows, { header? })` | Assert the CSV / first XLSX sheet; `header: false`: `rows` omit the header row |
184
+ | `await file.shouldContainRow(row)` | Assert one row of the file equals `row` |
185
+ | `await Spectra.browser.shouldHaveDownloaded(name \| /re/)` | Assert a download with that name completed, polling |
186
+ | `await Spectra.browser.shouldNotHaveDownloaded({ within? })` | Assert no download this test case, nor in `within` ms (1000) |
187
+ | `await Spectra.browser.shouldHaveDownloadCount(n)` | Assert `n` downloads completed |
182
188
  | `await Spectra.browser.installClock()` | Fake page clock, before the page loads |
183
189
  | `await Spectra.browser.advanceClock(ms)` | Jump the clock; timers that fall due run |
184
190
  | `await Spectra.browser.shouldHaveOpenedDialog(msg?)` | Assert a JS dialog opened (each is answered as it opens) |
185
191
  | `await Spectra.browser.shouldNotHaveOpenedDialog()` | Assert none opened, nor opens for 500ms |
186
192
 
187
- Tabs, the clock and dialogs are web only, and reset when the next test case starts: one tab, no fake clock, no dialogs recorded. Install the clock before `Spectra.navigate`: timers the current document started earlier do not move.
193
+ Tabs, the clock, dialogs and downloads are web only, and reset when the next test case starts: one tab, no fake clock, no dialogs or downloads recorded. Install the clock before `Spectra.navigate`: timers the current document started earlier do not move.
188
194
 
189
195
  ---
190
196