From cb90e7d7bc6910d6b13a04397336919c2731c5a1 Mon Sep 17 00:00:00 2001 From: Cody Zuschlag Date: Wed, 7 Feb 2024 11:56:37 +0000 Subject: [PATCH] upload to codecov from github actions --- .github/workflows/ci-cd.yml | 11 ++++++++++- src/pages/upload.e2e.ts | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 57313af..87618c8 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -132,4 +132,13 @@ jobs: name: playwright-report path: playwright-report/ retention-days: 30 - \ No newline at end of file + + - uses: codecov/codecov-action@v4 + with: + # fail_ci_if_error: true # optional (default = false) + files: ./coverage/clover.xml # optional + # flags: unittests # optional + # name: codecov-umbrella # optional + token: ${{ secrets.CODECOV_TOKEN }} # required + verbose: true # optional (default = false) + \ No newline at end of file diff --git a/src/pages/upload.e2e.ts b/src/pages/upload.e2e.ts index e177571..3ed8022 100644 --- a/src/pages/upload.e2e.ts +++ b/src/pages/upload.e2e.ts @@ -19,7 +19,9 @@ test('upload button appears after signing in', async ({page, loginPage}) => { await loginPage.signIn(); await loginPage.signInComplete(); await page.goto('/'); - await expect(page.getByRole('button', {name: /upload/i})).toBeVisible(); + await expect(page.getByRole('button', {name: /upload/i})).toBeVisible({ + timeout: 10_000, + }); }); test('can upload and view presentation', async ({page, loginPage}) => {