Skip to content

Commit 7711e9b

Browse files
committed
test(integration-tests): unblock master
1 parent 7ea725f commit 7711e9b

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

integration-tests/cli/helpers/personal-data-erasure.data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const customLineItem = [
6363
slug: 'mySlug',
6464
taxCategory: {
6565
typeId: 'tax-category',
66-
id: 'fd890829-7554-4c22-a806-d6c6dcdbb0c5',
66+
id: 'd205cc42-e399-424a-b6fc-0ef44772d6bc',
6767
},
6868
},
6969
],

integration-tests/cli/personal-data-erasure.it.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,19 @@ describe('personal data erasure', () => {
105105
it('should get data on the CTP', async () => {
106106
const data = await personalDataErasure.getCustomerData(customerId)
107107

108-
expect(data).toHaveLength(10)
108+
expect(data).toHaveLength(11)
109+
expect(data).toContainEqual(expect.objectContaining({type: 'CartCreated'}))
110+
expect(data).toContainEqual(expect.objectContaining({type: 'PaymentCreated'}))
111+
expect(data).toContainEqual(expect.objectContaining({type: 'CustomerCreated'}))
112+
expect(data).toContainEqual(expect.objectContaining({type: 'ReviewCreated'}))
113+
expect(data).toContainEqual(expect.objectContaining({type: 'OrderCreated'}))
114+
expect(data).toContainEqual(expect.objectContaining({type: 'CartCreated'}))
115+
expect(data).toContainEqual(expect.objectContaining({type: 'Order'}))
116+
expect(data).toContainEqual(expect.objectContaining({type: 'Cart'}))
117+
expect(data).toContainEqual(expect.objectContaining({email: 'foo@bar.de'}))
118+
expect(data).toContainEqual(expect.objectContaining({amountPlanned: { type: 'centPrecision', currencyCode: 'EUR', centAmount: 100, fractionDigits: 2}}))
119+
expect(data).toContainEqual(expect.objectContaining({name: {de: 'deutscherListenName', en: 'englishListName'}}))
120+
expect(data).toContainEqual(expect.objectContaining({text: 'Review text'}))
109121
})
110122
})
111123

0 commit comments

Comments
 (0)