@skyramp/testbot-core 0.13.0-v3.287 → 0.13.0-v3.289
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.
- package/assets/skyramp-walk/walk.cjs +3 -2
- package/dist/VERSION.json +1 -1
- package/dist/main.js +102 -102
- package/dist/post.js +40 -40
- package/dist/runner-client.cjs +34 -34
- package/package.json +1 -1
|
@@ -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')
|
|
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
|
-
|
|
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.
|
|
1
|
+
{"version":"0.13.0-v3.289","commit":"a4a6f03c413011041c29d6abc69baecdd59563d5"}
|