Skip to content

Commit a21835a

Browse files
committed
Fixing tests for the new translations.
1 parent 31ffa15 commit a21835a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

eform-client/cypress/e2e/plugins/time-planning-pn/f/dashboard-edit-a.spec.cy.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,42 +51,42 @@ describe('Dashboard edit values', () => {
5151
it('should show an error when planned stop time is before start time', () => {
5252
setTimepickerValue('#plannedStartOfShift1', '10', '00');
5353
setTimepickerValue('#plannedEndOfShift1', '9', '00');
54-
assertInputError('plannedEndOfShift1-Error', 'Stop time cannot be before start time');
54+
assertInputError('plannedEndOfShift1-Error', 'Stoptidspunktet må ikke være før starttidspunktet');
5555
});
5656

5757
it('should show an error when planned break is longer than the shift duration', () => {
5858
setTimepickerValue('#plannedStartOfShift1', '1', '00');
5959
setTimepickerValue('#plannedEndOfShift1', '10', '00');
6060
setTimepickerValue('#plannedBreakOfShift1', '9', '00');
61-
assertInputError('plannedBreakOfShift1-Error', 'Break cannot be equal or longer than shift duration');
61+
assertInputError('plannedBreakOfShift1-Error', 'Pausen må ikke være lige så lang som eller længere end vagtens varighed');
6262
});
6363

6464
it('should show an error when planned start and stop are the same', () => {
6565
setTimepickerValue('#plannedStartOfShift1', '9', '00');
6666
setTimepickerValue('#plannedEndOfShift1', '9', '00');
67-
assertInputError('plannedEndOfShift1-Error', 'Start and Stop cannot be the same');
67+
assertInputError('plannedEndOfShift1-Error', 'Starttidspunkt og Stoptidspunkt kan ikke være det samme');
6868
});
6969

7070
// --- Actual Shift Duration Validator ---
7171
it('should show an error when actual stop time is before start time', () => {
7272
setTimepickerValue('#start1StartedAt', '11', '00');
7373
setTimepickerValue('#stop1StoppedAt', '9', '00');
7474
setTimepickerValue('#pause1Id', '0', '00');
75-
assertInputError('stop1StoppedAt-Error', 'Stop time cannot be before start time');
75+
assertInputError('stop1StoppedAt-Error', 'Stoptidspunktet må ikke være før starttidspunktet');
7676
});
7777

7878
it('should show an error when actual pause is longer than the shift duration', () => {
7979
setTimepickerValue('#start1StartedAt', '8', '00');
8080
setTimepickerValue('#stop1StoppedAt', '10', '00');
8181
setTimepickerValue('#pause1Id', '2', '00');
82-
assertInputError('pause1Id-Error', 'Break cannot be equal or longer than shift duration');
82+
assertInputError('pause1Id-Error', 'Pausen må ikke være lige så lang som eller længere end vagtens varighed');
8383
});
8484

8585
it('should show an error when actual start and stop are the same', () => {
8686
setTimepickerValue('#start1StartedAt', '9', '00');
8787
setTimepickerValue('#stop1StoppedAt', '9', '00');
8888
setTimepickerValue('#pause1Id', '0', '00');
89-
assertInputError('stop1StoppedAt-Error', 'Start and Stop cannot be the same');
89+
assertInputError('stop1StoppedAt-Error', 'Starttidspunkt og Stoptidspunkt kan ikke være det samme');
9090
});
9191

9292
// --- Shift-Wise Validator ---

0 commit comments

Comments
 (0)