@skyramp/testbot-core 0.13.0-v3.287 → 0.13.0-v3.288

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.
@@ -10,7 +10,7 @@
10
10
  * await w.fill("page.getByPlaceholder('e.g. Apple Macbook Pro')", "Desk Lamp");
11
11
  * w.expectRequest(); // the next action's request body is checked in the test
12
12
  * await w.click("page.getByRole('button', { name: 'Submit' })");
13
- * await w.expectText("page.getByRole('heading').first()", "Product Details");
13
+ * await w.expectText("page.getByRole('heading', { name: 'Product Details' })", "Product Details");
14
14
  * });
15
15
  *
16
16
  * Other options: actionTimeoutMs (each action, default 10 s), checkTimeoutMs (each expect*, retried until it holds,
@@ -162,7 +162,8 @@ function patchAssertLocators(jsonl, byTimestamp) {
162
162
  .join("\n");
163
163
  }
164
164
 
165
- const EXPORTABLE = "getByTestId, getByRole, getByText, getByLabel, getByPlaceholder, getByAltText, getByTitle, locator('css'), chains of these, .first() and .nth(n)";
165
+ // In the order to reach for them: a layout change breaks a CSS path or a position, not a role and name.
166
+ const EXPORTABLE = "getByRole, getByLabel or getByTestId where the page has them, else getByText, getByPlaceholder, getByAltText, getByTitle, locator('css') and chains of these; .first() or .nth(n) only where the order is what the test checks";
166
167
 
167
168
  let generating = Promise.resolve();
168
169
 
package/dist/VERSION.json CHANGED
@@ -1 +1 @@
1
- {"version":"0.13.0-v3.287","commit":"a3730ee31570033ceb84c3ec9768d163ca28d8bd"}
1
+ {"version":"0.13.0-v3.288","commit":"7b755ece7bb93a97356f7a63e317bc339d007c39"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/testbot-core",
3
- "version": "0.13.0-v3.287",
3
+ "version": "0.13.0-v3.288",
4
4
  "description": "Skyramp Testbot engine: AI-powered deterministic test generation, execution and maintenance",
5
5
  "main": "dist/main.js",
6
6
  "//files": "An explicit allowlist, never a glob. `dist/` is gitignored, so without this key npm's .gitignore fallback would publish a package with no engine in it; with a glob it would publish the sourcemaps, whose sourcesContent embeds every src/*.ts verbatim. dist/VERSION.json exists only in a release-engine.yml build.",