From a6618c117328c06b2315c6a19f0eb337685b3d27 Mon Sep 17 00:00:00 2001 From: webfansplz <308241863@qq.com> Date: Fri, 14 Oct 2022 17:29:48 +0800 Subject: [PATCH] feat(ui): add tests summary in the dashboard (#2133) Co-authored-by: userquin --- .../dashboard/DashboardEntry.cy.tsx | 22 +++++++++---------- .../components/dashboard/DashboardEntry.vue | 6 +++-- .../dashboard/TestsFilesContainer.vue | 12 +++++----- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/packages/ui/client/components/dashboard/DashboardEntry.cy.tsx b/packages/ui/client/components/dashboard/DashboardEntry.cy.tsx index 56ab3476d0c9..c8b83dcd173f 100644 --- a/packages/ui/client/components/dashboard/DashboardEntry.cy.tsx +++ b/packages/ui/client/components/dashboard/DashboardEntry.cy.tsx @@ -5,20 +5,20 @@ const body = () => (
{ faker.lorem.words(2) } (
{ faker.hacker.phrase() }
) const bodySelector = '[data-testid=body-content]' const headerSelector = '[data-testid=header-content]' -const tailSelector = '[data-testid=tail]' +// const tailSelector = '[data-testid=tail]' describe('DashboardEntry', () => { - it('tail is rendered by default', () => { - cy.mount() - .get(tailSelector) - .should('exist') - }) + // it('tail is rendered by default', () => { + // cy.mount() + // .get(tailSelector) + // .should('exist') + // }) - it('tail is not shown when true', () => { - cy.mount() - .get(tailSelector) - .should('not.exist') - }) + // it('tail is not shown when true', () => { + // cy.mount() + // .get(tailSelector) + // .should('not.exist') + // }) it('renders the body and header slots', () => { cy.mount() diff --git a/packages/ui/client/components/dashboard/DashboardEntry.vue b/packages/ui/client/components/dashboard/DashboardEntry.vue index 144a8b60f950..0550f3ab5691 100644 --- a/packages/ui/client/components/dashboard/DashboardEntry.vue +++ b/packages/ui/client/components/dashboard/DashboardEntry.vue @@ -5,13 +5,15 @@ withDefaults(defineProps<{ tail?: boolean }>(), { tail: false }) diff --git a/packages/ui/client/components/dashboard/TestsFilesContainer.vue b/packages/ui/client/components/dashboard/TestsFilesContainer.vue index 17e63f590ef7..6c8ec4310794 100644 --- a/packages/ui/client/components/dashboard/TestsFilesContainer.vue +++ b/packages/ui/client/components/dashboard/TestsFilesContainer.vue @@ -1,10 +1,10 @@