Skip to content

Commit

Permalink
fix(e2e): another calendar e2e fix (#10795)
Browse files Browse the repository at this point in the history
  • Loading branch information
N1XUS authored Oct 25, 2023
1 parent ac186a9 commit fb857e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/docs/core/calendar/e2e/calendar.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ describe('calendar test suite', () => {
const today = new Date();
const endDate = new Date(today);
endDate.setDate(today.getDate() + 7);
const nextDayAfterEndDate = new Date();
nextDayAfterEndDate.setDate(endDate.getDate() + 1);
const nextDayAfterEndDate = new Date(endDate);
nextDayAfterEndDate.setDate(nextDayAfterEndDate.getDate() + 1);

console.log(endDate.getDay());

if (endDate.getDate() < today.getDate()) {
await click(nextMonthButton);
Expand Down

0 comments on commit fb857e8

Please sign in to comment.