From 3cd36c4b212174230e0c9a5cf4c9577418c82124 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Sun, 15 Dec 2024 22:34:13 +0100 Subject: [PATCH] Add Playwright test --- tests/e2e/repo-activity-contributors.test.e2e.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/e2e/repo-activity-contributors.test.e2e.ts diff --git a/tests/e2e/repo-activity-contributors.test.e2e.ts b/tests/e2e/repo-activity-contributors.test.e2e.ts new file mode 100644 index 0000000000..7235d24b15 --- /dev/null +++ b/tests/e2e/repo-activity-contributors.test.e2e.ts @@ -0,0 +1,8 @@ +import {expect} from '@playwright/test'; +import {test} from './utils_e2e.ts'; + +test('Contributor graph', async ({page}) => { + await page.goto('/user2/commits_search_test/activity/contributors'); + await page.getByRole('link', {name: '2 Commits'}).click(); + await expect(page.getByRole('cell', {name: 'Bob'})).toHaveCount(2); +});