We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 958ea74 + 17bcbc7 commit 9249ab7Copy full SHA for 9249ab7
cypress/e2e/parallel-3/holidayStops.cy.ts
@@ -41,6 +41,13 @@ describe('Holiday stops', () => {
41
message: 'success',
42
},
43
}).as('create_holiday_stop');
44
+
45
+ cy.intercept('PATCH', '/api/holidays/**', {
46
+ statusCode: 200,
47
+ body: {
48
+ message: 'success',
49
+ },
50
+ }).as('amend_holiday_stop');
51
});
52
53
it('can add a new holiday stop and add another', () => {
@@ -129,6 +136,10 @@ describe('Holiday stops', () => {
129
136
130
137
cy.get('@fetch_existing_holidays.all').should('have.length', 1);
131
138
cy.get('@product_detail.all').should('have.length', 1);
139
140
+ cy.findByText('Confirm').click();
141
+ cy.wait('@amend_holiday_stop');
142
+ cy.findByText('Your schedule has been set');
132
143
133
144
134
145
it('can delete an existing holiday stop from overview page', () => {
0 commit comments