@@ -320,7 +320,7 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
320320 await expect ( dialog . locator ( '.lock-banner' ) ) . toBeVisible ( { timeout : 5000 } ) ;
321321
322322 // Verify the preset name is displayed
323- await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'GLS-A / 3F - Jordbrug Standard' ) ;
323+ await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'GLS-A / 3F - Jordbrug Standard 2024-2026 ' ) ;
324324
325325 // Verify the read-only rules summary shows pay day rules
326326 await expect ( dialog . locator ( '.rules-summary' ) . first ( ) ) . toBeVisible ( { timeout : 5000 } ) ;
@@ -331,11 +331,11 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
331331 // Verify it appears in the grid
332332 const grid = page . locator ( '#time-planning-pn-pay-rule-sets-grid' ) ;
333333 await grid . waitFor ( { state : 'visible' , timeout : 10000 } ) ;
334- await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Standard' ) ) . toBeVisible ( { timeout : 10000 } ) ;
334+ await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Standard 2024-2026 ' ) ) . toBeVisible ( { timeout : 10000 } ) ;
335335
336336 // ---- Step 2: Navigate to Plannings and assign PayRuleSet to worker ----
337337 await navigateToPlannings ( page ) ;
338- await assignPayRuleSetToWorker ( page , 'GLS-A / 3F - Jordbrug Standard' ) ;
338+ await assignPayRuleSetToWorker ( page , 'GLS-A / 3F - Jordbrug Standard 2024-2026 ' ) ;
339339
340340 // ---- Step 3: Verify the assignment was saved by re-opening the dialog ----
341341 // Re-navigate to plannings to confirm
@@ -354,7 +354,7 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
354354 // Verify the "Jordbrug Standard" preset from Scenario 1 is in the grid
355355 const grid = page . locator ( '#time-planning-pn-pay-rule-sets-grid' ) ;
356356 await grid . waitFor ( { state : 'visible' , timeout : 10000 } ) ;
357- await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Standard' ) ) . toBeVisible ( { timeout : 10000 } ) ;
357+ await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Standard 2024-2026 ' ) ) . toBeVisible ( { timeout : 10000 } ) ;
358358
359359 // ---- Step 2: Open create modal and verify Standard preset is gone ----
360360 await openCreatePayRuleSetModal ( page ) ;
@@ -377,15 +377,15 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
377377
378378 // Verify the locked preset view is shown
379379 await expect ( dialog . locator ( '.lock-banner' ) ) . toBeVisible ( { timeout : 5000 } ) ;
380- await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'GLS-A / 3F - Jordbrug Dyrehold' ) ;
380+ await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'GLS-A / 3F - Jordbrug Dyrehold 2024-2026 ' ) ;
381381
382382 // Click Create
383383 await submitCreatePayRuleSet ( page ) ;
384384
385385 // ---- Step 4: Verify both rule sets appear in the grid ----
386386 await grid . waitFor ( { state : 'visible' , timeout : 10000 } ) ;
387- await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Standard' ) ) . toBeVisible ( { timeout : 10000 } ) ;
388- await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Dyrehold' ) ) . toBeVisible ( { timeout : 10000 } ) ;
387+ await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Standard 2024-2026 ' ) ) . toBeVisible ( { timeout : 10000 } ) ;
388+ await expect ( grid . getByText ( 'GLS-A / 3F - Jordbrug Dyrehold 2024-2026 ' ) ) . toBeVisible ( { timeout : 10000 } ) ;
389389 } ) ;
390390
391391 // -----------------------------------------------------------------------
@@ -400,14 +400,14 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
400400
401401 const dialog = page . locator ( 'mat-dialog-container' ) ;
402402 await expect ( dialog . locator ( '.lock-banner' ) ) . toBeVisible ( { timeout : 5000 } ) ;
403- await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'KA / Krifa - Landbrug Svine/Kvaeg Standard' ) ;
403+ await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'KA / Krifa - Landbrug Svine/Kvaeg Standard 2025-2028 ' ) ;
404404 await expect ( dialog . locator ( '.rules-summary' ) . first ( ) ) . toBeVisible ( { timeout : 5000 } ) ;
405405
406406 await submitCreatePayRuleSet ( page ) ;
407407
408408 const grid = page . locator ( '#time-planning-pn-pay-rule-sets-grid' ) ;
409409 await grid . waitFor ( { state : 'visible' , timeout : 10000 } ) ;
410- await expect ( grid . getByText ( 'KA / Krifa - Landbrug Svine/Kvaeg Standard' ) ) . toBeVisible ( { timeout : 10000 } ) ;
410+ await expect ( grid . getByText ( 'KA / Krifa - Landbrug Svine/Kvaeg Standard 2025-2028 ' ) ) . toBeVisible ( { timeout : 10000 } ) ;
411411 } ) ;
412412
413413 // -----------------------------------------------------------------------
@@ -421,11 +421,11 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
421421
422422 const dialog = page . locator ( 'mat-dialog-container' ) ;
423423 await expect ( dialog . locator ( '.lock-banner' ) ) . toBeVisible ( { timeout : 5000 } ) ;
424- await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'GLS-A / 3F - Gartneri Standard' ) ;
424+ await expect ( dialog . locator ( '.preset-name' ) ) . toContainText ( 'GLS-A / 3F - Gartneri Standard 2024-2026 ' ) ;
425425
426426 await submitCreatePayRuleSet ( page ) ;
427427
428428 const grid = page . locator ( '#time-planning-pn-pay-rule-sets-grid' ) ;
429- await expect ( grid . getByText ( 'GLS-A / 3F - Gartneri Standard' ) ) . toBeVisible ( { timeout : 10000 } ) ;
429+ await expect ( grid . getByText ( 'GLS-A / 3F - Gartneri Standard 2024-2026 ' ) ) . toBeVisible ( { timeout : 10000 } ) ;
430430 } ) ;
431431} ) ;
0 commit comments