Skip to content

Commit

Permalink
tests: fix failing contributions tests by adding extended timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeeburt committed Jan 10, 2025
1 parent 1f9375c commit 9e12753
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/projects/contributions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { test, expect } from '@playwright/test';
import { Contribution } from '@/types';

test.describe('GitHub Contributions', () => {
test.setTimeout(60000);
test('contributions should be displayed and visible', async ({
page
}) => {
Expand Down Expand Up @@ -37,8 +38,7 @@ test.describe('GitHub Contributions', () => {
const contributionsPromise = page.waitForResponse(
(response) =>
response.url().includes('/api/contributions') &&
response.status() === 200,
{ timeout: 7500 }
response.status() === 200
);

await page.goto('/#projects');
Expand All @@ -55,8 +55,7 @@ test.describe('GitHub Contributions', () => {
const contributionsPromise = page.waitForResponse(
(response) =>
response.url().includes('/api/contributions') &&
response.status() === 200,
{ timeout: 7500 }
response.status() === 200
);

await page.goto('/#projects');
Expand Down

0 comments on commit 9e12753

Please sign in to comment.