Skip to content

Commit d3174ed

Browse files
feat(bms): Update BMS Free Message E2E tests with new discount features
- Enhanced test cases for BMS Free messages by adding discount rates and fixed discounts to commerce items. - Updated video URLs in tests to valid links and added notes for clarity on video URL handling. - Improved overall test coverage for BMS Free message types, ensuring accurate representation of discount functionalities. These changes ensure that the E2E tests reflect the latest features and maintain robustness in testing BMS messages.
1 parent cce726e commit d3174ed

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

test/services/messages/bms-free.e2e.test.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,16 @@ describe('BMS Free Message E2E', () => {
763763
carousel: {
764764
list: [
765765
createCarouselCommerceItem(imageId, {
766-
commerce: createBmsCommerce({title: '상품 1'}),
766+
commerce: createBmsCommerce({
767+
title: '상품 1',
768+
discountRate: 10,
769+
}),
767770
}),
768771
createCarouselCommerceItem(imageId, {
769-
commerce: createBmsCommerce({title: '상품 2'}),
772+
commerce: createBmsCommerce({
773+
title: '상품 2',
774+
discountFixed: 2000,
775+
}),
770776
}),
771777
],
772778
},
@@ -833,20 +839,24 @@ describe('BMS Free Message E2E', () => {
833839
title: '프리미엄 상품 1',
834840
regularPrice: 30000,
835841
discountPrice: 25000,
842+
discountRate: 17,
836843
}),
837844
additionalContent: '추가 정보',
838845
imageLink: 'https://example.com/product1',
839846
buttons: [
840847
createBmsLinkButton('WL'),
841848
createBmsLinkButton('AL'),
842849
],
843-
coupon: createBmsCoupon('won'),
850+
coupon: {
851+
...createBmsCoupon('won'),
852+
},
844853
}),
845854
createCarouselCommerceItem(imageId, {
846855
commerce: createBmsCommerce({
847856
title: '프리미엄 상품 2',
848857
regularPrice: 40000,
849858
discountPrice: 35000,
859+
discountFixed: 5000,
850860
}),
851861
buttons: [createBmsLinkButton('WL')],
852862
}),
@@ -899,7 +909,8 @@ describe('BMS Free Message E2E', () => {
899909
pfId: channel.channelId,
900910
bms: createBmsOption('PREMIUM_VIDEO', {
901911
video: {
902-
videoUrl: 'https://tv.kakao.com/v/123456789',
912+
// NOTE: 발송 간 유효하지 않은 동영상 URL을 기입하면 발송 상태가 그룹 정보를 찾을 수 없음 오류로 표시됩니다.
913+
videoUrl: 'https://tv.kakao.com/v/460734285',
903914
},
904915
}),
905916
},
@@ -954,7 +965,8 @@ describe('BMS Free Message E2E', () => {
954965
header: '비디오 헤더',
955966
content: '비디오 내용입니다.',
956967
video: {
957-
videoUrl: 'https://tv.kakao.com/v/123456789',
968+
// NOTE: 발송 간 유효하지 않은 동영상 URL을 기입하면 발송 상태가 그룹 정보를 찾을 수 없음 오류로 표시됩니다.
969+
videoUrl: 'https://tv.kakao.com/v/460734285',
958970
imageId,
959971
imageLink: 'https://example.com/video',
960972
},

0 commit comments

Comments
 (0)