mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Add e2e tests for editing patches, issues, comments, labels and assignees
This commit is contained in:
@@ -98,6 +98,7 @@
|
||||
<div class="actions">
|
||||
{#if mode === "readEdit"}
|
||||
<IconButton
|
||||
title="save assignees"
|
||||
loading={submitInProgress}
|
||||
on:click={() => {
|
||||
dispatch("save", updatedAssignees);
|
||||
@@ -106,6 +107,7 @@
|
||||
<IconSmall name="checkmark" />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
title="dismiss changes"
|
||||
loading={submitInProgress}
|
||||
on:click={() => {
|
||||
updatedAssignees = assignees;
|
||||
@@ -116,6 +118,7 @@
|
||||
</IconButton>
|
||||
{:else if mode !== "readCreate"}
|
||||
<IconButton
|
||||
title="edit assignees"
|
||||
loading={submitInProgress}
|
||||
on:click={() => (mode = "readEdit")}>
|
||||
<IconSmall name="edit" />
|
||||
@@ -131,11 +134,11 @@
|
||||
<div class="assignee">
|
||||
<Avatar inline nodeId={assignee} />
|
||||
<span>{formatNodeId(assignee)}</span>
|
||||
<span style:cursor="pointer">
|
||||
<IconButton title="remove assignee">
|
||||
<IconSmall
|
||||
name="cross"
|
||||
on:click={() => removeAssignee(assignee)} />
|
||||
</span>
|
||||
</IconButton>
|
||||
</div>
|
||||
</Badge>
|
||||
{:else}
|
||||
|
||||
@@ -120,9 +120,9 @@
|
||||
{#each updatedLabels as label}
|
||||
<Badge variant="neutral">
|
||||
<div aria-label="chip" class="label">{label}</div>
|
||||
<span style:cursor="pointer">
|
||||
<IconButton title="remove label">
|
||||
<IconSmall name="cross" on:click={() => removeLabel(label)} />
|
||||
</span>
|
||||
</IconButton>
|
||||
</Badge>
|
||||
{:else}
|
||||
<div class="txt-missing">No labels</div>
|
||||
|
||||
@@ -675,7 +675,7 @@
|
||||
body={newDescription}
|
||||
submitCaption="Save"
|
||||
submitInProgress={descriptionState === "submit"}
|
||||
placeholder="Leave your description"
|
||||
placeholder="Leave a description"
|
||||
on:close={() => (descriptionState = "read")}
|
||||
on:submit={async ({ detail: { comment } }) => {
|
||||
descriptionState = "submit";
|
||||
|
||||
Reference in New Issue
Block a user