From 124dd75ac6593996cda57991d841ac366c1970c4 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Fri, 23 Sep 2022 21:21:21 +0200 Subject: [PATCH] Add delegate badge to `CommitAuthorship` Signed-off-by: Sebastian Martinez --- cypress/e2e/projectCommits.spec.ts | 2 +- .../projects/Commit/CommitAuthorship.svelte | 39 +++++++++++-------- src/base/projects/Commit/CommitTeaser.svelte | 2 +- .../Commit/CommitVerifiedBadge.svelte | 4 +- 4 files changed, 26 insertions(+), 21 deletions(-) diff --git a/cypress/e2e/projectCommits.spec.ts b/cypress/e2e/projectCommits.spec.ts index 97315f9ca..ec44254dd 100644 --- a/cypress/e2e/projectCommits.spec.ts +++ b/cypress/e2e/projectCommits.spec.ts @@ -129,7 +129,7 @@ describe("project commits", () => { }); }); - cy.get(".commit-teaser .badge").trigger("mouseenter"); + cy.get(".commit-teaser .badge").last().trigger("mouseenter"); // Checking that the initial commit has the Verified badge cy.get(".popup .header").should( "have.text", diff --git a/src/base/projects/Commit/CommitAuthorship.svelte b/src/base/projects/Commit/CommitAuthorship.svelte index 39a3731d2..1873a6fb0 100644 --- a/src/base/projects/Commit/CommitAuthorship.svelte +++ b/src/base/projects/Commit/CommitAuthorship.svelte @@ -1,16 +1,20 @@