Skip to content

Commit b1d9311

Browse files
fix(ui5-date-*): make tests stable (#11191)
fixes: #11188
1 parent 2978ad1 commit b1d9311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/main/cypress/specs/DateControlsWithTimezone.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("Date related components in different timezone", () => {
4141
now.setHours(now.getHours() + 13);
4242
const hours = String(now.getHours()).padStart(2, "0");
4343
const minutes = String(now.getMinutes()).padStart(2, "0");
44-
const seconds = now.getSeconds();
44+
const seconds = String(now.getSeconds()).padStart(2, "0");
4545

4646
const value = `${hours}:${minutes}:${seconds}`;
4747

@@ -63,7 +63,7 @@ describe("Date related components in different timezone", () => {
6363
const year = now.getFullYear();
6464
const hours = String(now.getHours()).padStart(2, "0");
6565
const minutes = String(now.getMinutes()).padStart(2, "0");
66-
const seconds = now.getSeconds();
66+
const seconds = String(now.getSeconds()).padStart(2, "0");
6767

6868
const value = `${day}/${month}/${year} ${hours}:${minutes}:${seconds}`;
6969

0 commit comments

Comments
 (0)