Skip to content

Commit

Permalink
updated format for time (#828)
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy authored Sep 6, 2023
1 parent d9701d1 commit 5504f1e
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ describe('Configure panel settings', () => {
.invoke('text')
.then((text) => {
expect(
moment(text, 'MM/DD hh:mm:ss A').format('MM/DD hh:mm:ss A')
).equal(text);
moment(text, 'MM/DD/YY hh:mm A').format('MM/DD/YY hh:mm A')
).equal(text);
});

cy.get('select').eq(3).select('HH:mm:ss.SSS');
Expand All @@ -204,9 +204,7 @@ describe('Configure panel settings', () => {
.eq(0)
.invoke('text')
.then((text) => {
expect(
moment(text, 'MM/DD hh:mm:ss A').format('MM/DD hh:mm:ss A')
).equal(text);
expect(moment(text, 'HH:mm:ss.SSS').format('HH:mm:ss.SSS')).equal(text);
});

cy.get('select').eq(3).select('MM/DD HH:mm:ss');
Expand All @@ -217,9 +215,7 @@ describe('Configure panel settings', () => {
.eq(0)
.invoke('text')
.then((text) => {
expect(
moment(text, 'MM/DD hh:mm:ss A').format('MM/DD hh:mm:ss A')
).equal(text);
expect(moment(text, 'MM/DD HH:mm:ss').format('MM/DD HH:mm:ss')).equal(text);
});

cy.get('select').eq(3).select('MM/DD/YY HH:mm');
Expand All @@ -230,9 +226,7 @@ describe('Configure panel settings', () => {
.eq(0)
.invoke('text')
.then((text) => {
expect(
moment(text, 'MM/DD hh:mm:ss A').format('MM/DD hh:mm:ss A')
).equal(text);
expect(moment(text, 'MM/DD/YY HH:mm').format('MM/DD/YY HH:mm')).equal(text);
});
});

Expand Down

0 comments on commit 5504f1e

Please sign in to comment.