Skip to content

Commit

Permalink
EVEREST-970 | change default schedule (#1061)
Browse files Browse the repository at this point in the history
* chore: change default schedule

* fix: e2e schedule data-testid

* fix: e2e tests
  • Loading branch information
fabio-silva authored Jan 27, 2025
1 parent d2e96df commit 37f0ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/apps/everest/.e2e/pr/db-cluster-details/schedules.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ test.describe('Schedules List', async () => {
await page.getByTestId('scheduled-backups');
await scheduledBackupsAccordion.click();

expect(page.getByText('Monthly on day 1 at 12:00 AM')).toBeTruthy();
expect(page.getByText('Monthly on day 1 at 1:00 AM')).toBeTruthy();
expect(page.getByText('2 active schedules')).toBeTruthy();
});

Expand Down Expand Up @@ -245,7 +245,7 @@ test.describe('Schedules List', async () => {
await scheduledBackupsAccordion.click();

const scheduleForEditBtn = await page
.getByTestId('schedule-0 0 1 * *')
.getByTestId('schedule-0 1 1 * *')
.getByTestId('edit-schedule-button');

await scheduleForEditBtn.click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const DAYS_MONTH = Array.from({ length: 31 }, (_, i) => i + 1);
export const HOURS_AM_PM = Array.from({ length: 12 }, (_, i) => i + 1);

export const TIME_SELECTION_DEFAULTS = {
[TimeSelectionFields.selectedTime]: TimeValue.hours,
[TimeSelectionFields.selectedTime]: TimeValue.days,
[TimeSelectionFields.minute]: 0,
[TimeSelectionFields.hour]: 12,
[TimeSelectionFields.hour]: 1,
[TimeSelectionFields.amPm]: AmPM.AM,
[TimeSelectionFields.weekDay]: WeekDays.Mo,
[TimeSelectionFields.onDay]: 1,
Expand Down

0 comments on commit 37f0ad4

Please sign in to comment.