Fix copying wrong ids when switching cob listing state
We don’t really need the clipboard prop.
By switching between stats in patches and issue listings the clipboard
props aren’t been recomputed.
Wrote a test that should make sure this doesn’t break in the future.
4 files changed
+25
-24
f19ecf09
→
723d188e
modified src/components/Id.svelte
@@ -9,7 +9,6 @@
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -26,7 +25,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/nodes/NodeAddress.svelte
@@ -13,7 +13,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/nodes/UserAgent.svelte
@@ -30,12 +30,7 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/clipboard.spec.ts
@@ -1,19 +1,11 @@
| - | |
| - | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -25,6 +17,13 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -33,17 +32,14 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -55,10 +51,21 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|