Bring reactions to comments and issues

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-12 15:36:02 +02:00
committed by Rūdolfs Ošiņš
parent 28718ba0cf
commit 205fc814bc
7 changed files with 91 additions and 4 deletions
+2 -2
View File
@@ -274,7 +274,7 @@ test("peer and branch switching", async ({ page }) => {
await expect(page.getByTitle("Change peer")).toHaveText(
`did:key:${aliceRemote.substring(8).substring(0, 6)}…${aliceRemote.slice(
-6,
)} (radicle) delegate`,
)} (alice) delegate`,
);
await expect(
page.locator(
@@ -339,7 +339,7 @@ test("peer and branch switching", async ({ page }) => {
await expect(page.getByTitle("Change peer")).toHaveText(
`did:key:${bobRemote.substring(8).substring(0, 6)}…${bobRemote.slice(
-6,
)}`,
)} (bob)`,
);
await expect(page.getByTitle("Change peer")).not.toHaveText("delegate");
+4 -2
View File
@@ -20,7 +20,7 @@ test("peer and branch switching", async ({ page }) => {
await expect(page.getByTitle("Change peer")).toHaveText(
` did:key:${aliceRemote
.substring(8)
.substring(0, 6)}…${aliceRemote.slice(-6)} (radicle) delegate`,
.substring(0, 6)}…${aliceRemote.slice(-6)} (alice) delegate`,
);
await expect(page.getByText("Thursday, November 17, 2022")).toBeVisible();
@@ -122,7 +122,9 @@ test("relative timestamps", async ({ page }) => {
await page.getByTitle("Change peer").click();
await page.getByText(bobRemote).click();
await expect(page.getByTitle("Change peer")).toHaveText(
`did:key:${bobRemote.substring(8).substring(0, 6)}…${bobRemote.slice(-6)}`,
`did:key:${bobRemote.substring(8).substring(0, 6)}…${bobRemote.slice(
-6,
)} (bob)`,
);
const latestCommit = page.locator(".teaser").first();
await expect(latestCommit).toContainText("Bob Belcher committed now");
+24
View File
@@ -370,6 +370,18 @@ export async function createCobsFixture(peer: RadiclePeer) {
["bug", "feature-request"],
{ cwd: projectFolder },
);
await peer.rad(
["issue", "react", issueOne, "--emoji", "👍", "--to", issueOne],
{
cwd: projectFolder,
},
);
await peer.rad(
["issue", "react", issueOne, "--emoji", "🎉", "--to", issueOne],
{
cwd: projectFolder,
},
);
await peer.rad(
["assign", issueOne, "--to", `did:key:${peer.nodeId}`],
createOptions(projectFolder, 1),
@@ -384,6 +396,12 @@ export async function createCobsFixture(peer: RadiclePeer) {
createOptions(projectFolder, 2),
);
await peer.rad(
["issue", "react", issueOne, "--emoji", "🙏", "--to", commentIssueOne],
{
cwd: projectFolder,
},
);
const { stdout: replyIssueOne } = await peer.rad(
[
"comment",
issueOne,
@@ -394,6 +412,12 @@ export async function createCobsFixture(peer: RadiclePeer) {
],
createOptions(projectFolder, 3),
);
await peer.rad(
["issue", "react", issueOne, "--emoji", "🚀", "--to", replyIssueOne],
{
cwd: projectFolder,
},
);
await peer.rad(
[
"comment",