From 61314f05fc7c24436357e4c85884228592c11d71 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Tue, 17 Sep 2024 17:11:18 +0200 Subject: [PATCH] tests(e2e): Test overflow in commit graph --- tests/e2e/repo-code.test.e2e.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/e2e/repo-code.test.e2e.js b/tests/e2e/repo-code.test.e2e.js index 01179d28d3..62c4f557c1 100644 --- a/tests/e2e/repo-code.test.e2e.js +++ b/tests/e2e/repo-code.test.e2e.js @@ -77,3 +77,10 @@ test('Readable diff', async ({page}, workerInfo) => { } } }); + +test('Commit graph overflow', async ({page}) => { + await page.goto('/user2/diff-test/graph'); + await expect(page.getByRole('button', {name: 'Mono'})).toBeInViewport({ratio: 1}); + await expect(page.getByRole('button', {name: 'Color'})).toBeInViewport({ratio: 1}); + await expect(page.locator('.selection.search.dropdown')).toBeInViewport({ratio: 1}); +});