Add e2e tests for editing patches, issues, comments, labels and assignees

This commit is contained in:
Sebastian Martinez
2023-11-15 09:32:12 +01:00
parent 1188e84c87
commit 56c87787ed
11 changed files with 759 additions and 426 deletions
+5 -2
View File
@@ -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}
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -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";