@nextclaw/x-harness 0.2.65 → 0.2.66
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/SOURCE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Corresponding source
|
|
2
2
|
|
|
3
|
-
Version 0.2.
|
|
3
|
+
Version 0.2.66, commit 0b3b276a3f9390c3ca46514b8ae3845beadf1033.
|
|
4
4
|
|
|
5
|
-
Complete source, build scripts and dependencies: https://github.com/Peiiii/x-harness/tree/
|
|
5
|
+
Complete source, build scripts and dependencies: https://github.com/Peiiii/x-harness/tree/0b3b276a3f9390c3ca46514b8ae3845beadf1033
|
|
6
6
|
|
|
7
7
|
Clone this revision, run npm ci, npm run bootstrap and npm run release:build.
|
|
8
8
|
|
|
@@ -486,7 +486,8 @@ export class DOMEditing {
|
|
|
486
486
|
if (names.length !== 1)
|
|
487
487
|
throw new Error("回复按钮未唯一观察");
|
|
488
488
|
const primary = result.posts[0].primary;
|
|
489
|
-
if (!primary ||
|
|
489
|
+
if (!primary ||
|
|
490
|
+
primary.match(/\/status\/(\d+)(?:\/history)?$/)?.[1] !== command.postId)
|
|
490
491
|
throw new Error("回复主帖永久链接未绑定");
|
|
491
492
|
const article = this.#locator("article").filter({
|
|
492
493
|
has: this.#tab.playwright.locator(`a[href=${JSON.stringify(primary)}]`),
|
|
@@ -230,7 +230,7 @@ export class DOMNavigation {
|
|
|
230
230
|
const articles = this.#tab.playwright.getByRole("article");
|
|
231
231
|
const detail = /^\/\w{1,15}\/status\/\d+$/.test(path)
|
|
232
232
|
? articles.filter({
|
|
233
|
-
has: this.#tab.playwright.locator(`a[href=${JSON.stringify(path)}]`),
|
|
233
|
+
has: this.#tab.playwright.locator(`a[href=${JSON.stringify(path)}],a[href=${JSON.stringify(path + "/history")}]`),
|
|
234
234
|
})
|
|
235
235
|
: articles;
|
|
236
236
|
await this.handleWaitTargetContent(detail.first(), command.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/x-harness",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Typed X task harness with compact business results and explicit diagnostics.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0b3b276a3f9390c3ca46514b8ae3845beadf1033"
|
|
46
46
|
}
|