Skip to content

Commit 0640bce

Browse files
CM-11976: Fix tests
1 parent 0a20ae9 commit 0640bce

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

tests/test-team/template-mgmt-event-tests/routing-config.event.spec.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@ test.describe('Event publishing - Routing Config', () => {
2424
});
2525

2626
test('Expect a draft event and a deleted event', async ({ request }) => {
27-
const payload = RoutingConfigFactory.create(user).apiPayload;
27+
const payload = RoutingConfigFactory.create(user, {
28+
cascade: [
29+
{
30+
cascadeGroups: ['standard'],
31+
channel: 'NHSAPP',
32+
channelType: 'primary',
33+
defaultTemplateId: 'template-id',
34+
},
35+
],
36+
}).apiPayload;
2837

2938
const start = new Date();
3039

@@ -89,7 +98,16 @@ test.describe('Event publishing - Routing Config', () => {
8998
});
9099

91100
test('Expect a draft event and a completed event', async ({ request }) => {
92-
const payload = RoutingConfigFactory.create(user).apiPayload;
101+
const payload = RoutingConfigFactory.create(user, {
102+
cascade: [
103+
{
104+
cascadeGroups: ['standard'],
105+
channel: 'NHSAPP',
106+
channelType: 'primary',
107+
defaultTemplateId: 'template-id',
108+
},
109+
],
110+
}).apiPayload;
93111

94112
const start = new Date();
95113

0 commit comments

Comments
 (0)