From a4d0ff2b24e7dc74d595566a1571c76d889a1156 Mon Sep 17 00:00:00 2001 From: Konstantin Schaper Date: Tue, 11 Aug 2020 15:19:41 +0200 Subject: [PATCH] add story and update storyshots --- .../src/__snapshots__/storyshots.test.ts.snap | 250 ++++++++++++++++++ .../repos/changesets/Changesets.stories.tsx | 23 ++ 2 files changed, 273 insertions(+) diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 39b044a930..aeb29fe8a0 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -2684,6 +2684,131 @@ exports[`Storyshots Changesets With avatar 1`] = ` `; +exports[`Storyshots Changesets With contactless signature 1`] = ` +
+
+
+
+
+
+
+
+

+ + initialize repository + +

+

+

+

+

+ changeset.contributors.authoredBy + + + SCM Administrator + +

+
+ +
+
+
+
+
+
+
+
+
+
+

+ +

+

+ +

+
+
+
+
+
+`; + exports[`Storyshots Changesets With invalid signature 1`] = `
`; +exports[`Storyshots Changesets With unowned signature 1`] = ` +
+
+
+
+
+
+
+
+

+ + initialize repository + +

+

+

+

+

+ changeset.contributors.authoredBy + + + SCM Administrator + +

+
+ +
+
+
+
+
+
+
+
+
+
+

+ +

+

+ +

+
+
+
+
+
+`; + exports[`Storyshots Changesets With valid signature 1`] = `
; }) + .add("With unowned signature", () => { + const changeset = copy(three); + changeset.signatures = [{ + keyId: "0x247E908C6FD35473", + type: "gpg", + status: "VERIFIED", + contacts: [{ + name: "Tricia Marie McMilla", + mail: "trillian@hitchhiker.com" + }] + }]; + return ; + }) + .add("With contactless signature", () => { + const changeset = copy(three); + changeset.signatures = [{ + keyId: "0x247E908C6FD35473", + type: "gpg", + status: "VERIFIED", + owner: "trillian" + }]; + return ; + }) .add("With invalid signature", () => { const changeset = copy(three); changeset.signatures = [{