Skip to content

Commit 28b784d

Browse files
renemadsenclaude
andcommitted
Remove useGoogleSheetAsDefault dialog section from Playwright dashboard-assert
The entire dialog open/save flow was only needed to enable useGoogleSheetAsDefault, which is now enabled by default in seed (commit e86d3a1). Saving with no changes caused a waitForResponse timeout since no PUT request was sent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d4ce1e4 commit 28b784d

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

eform-client/playwright/e2e/plugins/time-planning-pn/b/dashboard-assert.spec.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -249,22 +249,8 @@ test.describe('Dashboard assert', () => {
249249
await indexUpdatePromise;
250250
await waitForSpinner(page);
251251

252-
// Wait for spinner before clicking firstColumn3
253-
await waitForSpinner(page);
254-
await page.locator('#firstColumn3').click();
255-
// Wait for spinner before clicking checkbox
256-
await waitForSpinner(page);
257252
// useGoogleSheetAsDefault is now enabled by default in seed (commit e86d3a1b)
258-
// await page.locator('#useGoogleSheetAsDefault').click();
259-
// Wait for spinner before clicking Save button
260-
await waitForSpinner(page);
261-
const assignSitePromise = page.waitForResponse(r => r.url().includes('/api/time-planning-pn/settings/assigned-site') && r.request().method() === 'PUT');
262-
await page.locator('#saveButton').click();
263-
await assignSitePromise;
264-
const indexUpdatePromise2 = page.waitForResponse(r => r.url().includes('/api/time-planning-pn/plannings/index') && r.request().method() === 'POST');
265-
await indexUpdatePromise2;
266-
await waitForSpinner(page);
267-
await page.waitForTimeout(2000);
253+
// so no need to open dialog and toggle it
268254

269255
// Wait for spinner before clicking Timeregistrering menu
270256
await waitForSpinner(page);

0 commit comments

Comments
 (0)