Skip to content

Commit 49fe62a

Browse files
committed
Fix prior reset in prior notifiaction update e2e test
1 parent e22c544 commit 49fe62a

File tree

1 file changed

+3
-2
lines changed
  • frontend/cypress/e2e/side_window/prior_notification_card

1 file changed

+3
-2
lines changed

frontend/cypress/e2e/side_window/prior_notification_card/card.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ context('Side Window > Prior Notification Card > Card', () => {
133133
})
134134

135135
it('Should update a logbook prior notification', () => {
136-
cy.request('PUT', `/bff/v1/prior_notifications/logbook/FAKE_OPERATION_114?operationDate=${dayjs().toISOString()}`, {
136+
// Reset
137+
const operationDate = dayjs().subtract(6, 'hours').toISOString()
138+
cy.request('PUT', `/bff/v1/prior_notifications/logbook/FAKE_OPERATION_114?operationDate=${operationDate}`, {
137139
body: {
138140
authorTrigram: null,
139141
note: null
@@ -166,7 +168,6 @@ context('Side Window > Prior Notification Card > Card', () => {
166168
cy.get('[name="authorTrigram"]').should('have.value', 'ABC')
167169

168170
// Reset
169-
const operationDate = dayjs().subtract(6, 'hours').toISOString()
170171
cy.request('PUT', `/bff/v1/prior_notifications/logbook/FAKE_OPERATION_114?operationDate=${operationDate}`, {
171172
body: {
172173
authorTrigram: null,

0 commit comments

Comments
 (0)