mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 02:00:31 +08:00
Fix assignee and peer switching e2e tests
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
const parsedNodeId = parseNodeId(inputValue);
|
||||
if (parsedNodeId) {
|
||||
assignee = `${parsedNodeId.prefix}${parsedNodeId.pubkey}`;
|
||||
if (!updatedAssignees.find(({ id }) => id === assignee)) {
|
||||
if (updatedAssignees.find(({ id }) => id === assignee)) {
|
||||
valid = false;
|
||||
validationMessage = "This assignee is already added";
|
||||
} else {
|
||||
|
||||
@@ -220,7 +220,9 @@
|
||||
revision: revisionId,
|
||||
comment: commentId,
|
||||
reaction,
|
||||
active: Boolean(authors.find(({ id }) => id === session.publicKey)),
|
||||
active: !authors.find(
|
||||
({ id }) => utils.parseNodeId(id)?.pubkey === session.publicKey,
|
||||
),
|
||||
},
|
||||
session.id,
|
||||
);
|
||||
@@ -378,7 +380,9 @@
|
||||
type: "revision.react",
|
||||
revision: revisionId,
|
||||
reaction,
|
||||
active: Boolean(authors.find(({ id }) => id === session.publicKey)),
|
||||
active: !authors.find(
|
||||
({ id }) => utils.parseNodeId(id)?.pubkey === session.publicKey,
|
||||
),
|
||||
},
|
||||
session.id,
|
||||
);
|
||||
|
||||
@@ -294,7 +294,7 @@ test("peer and branch switching", async ({ page }) => {
|
||||
);
|
||||
await expect(
|
||||
page.getByRole("link", {
|
||||
name: "Commits 6",
|
||||
name: "Commits 7",
|
||||
}),
|
||||
).toBeVisible();
|
||||
}
|
||||
@@ -363,7 +363,7 @@ test("peer and branch switching", async ({ page }) => {
|
||||
);
|
||||
await expect(
|
||||
page.getByRole("link", {
|
||||
name: "Commits 7",
|
||||
name: "Commits 8",
|
||||
}),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
|
||||
Reference in New Issue
Block a user