@@ -4,12 +4,14 @@ Feature: In-App Messaging demo page to show banners with various configurations
44
55 Background :
66 Given I'm running the example "ui/components/in-app-messaging/demo"
7+ Then I wait for 2000 ms
78
89 @react @react-native
910 Scenario : Verify that the default banner is top banner with primary and secondary buttons
1011 Given "Has Primary Button" checkbox is checked
1112 Then "Has Secondary Button" checkbox is checked
12- Then "TOP_BANNER" layout radio option is selected
13+ Then the "TOP_BANNER" layout radio option is selected
14+ Then I see the "Display Demo Message" button
1315 When I click the "Display Demo Message" button
1416 Then I see a "top" banner dialog
1517 Then the banner has 2 buttons
@@ -18,13 +20,19 @@ Feature: In-App Messaging demo page to show banners with various configurations
1820
1921 @react @react-native
2022 Scenario : Verify that the banner has expected number of buttons
23+ Given "Has Primary Button" checkbox is checked
24+ Then "Has Secondary Button" checkbox is checked
2125 When I toggle "Has Secondary Button" checkbox
26+ Then "Has Secondary Button" checkbox is unchecked
27+ Then I see the "Display Demo Message" button
2228 Then I click the "Display Demo Message" button
2329 Then I see a "top" banner dialog
2430 Then the banner has 1 buttons
2531 When I dismiss the banner
2632 Then I do not see the banner
2733 When I toggle "Has Primary Button" checkbox
34+ Then "Has Primary Button" checkbox is unchecked
35+ Then I see the "Display Demo Message" button
2836 Then I click the "Display Demo Message" button
2937 Then I see a "top" banner dialog
3038 Then the banner has 0 buttons
@@ -34,31 +42,40 @@ Feature: In-App Messaging demo page to show banners with various configurations
3442 @react @react-native
3543 Scenario : Verify that the banner is shown as a bottom banner
3644 When I click the "BOTTOM_BANNER" layout radio option
45+ Then the "BOTTOM_BANNER" layout radio option is selected
46+ Then I see the "Display Demo Message" button
3747 Then I click the "Display Demo Message" button
3848 Then I see a "bottom" banner dialog
3949
4050 @react @react-native
4151 Scenario : Verify that the banner is shown as a middle banner
4252 When I click the "MIDDLE_BANNER" layout radio option
53+ Then the "MIDDLE_BANNER" layout radio option is selected
54+ Then I see the "Display Demo Message" button
4355 Then I click the "Display Demo Message" button
4456 Then I see a "middle" banner dialog
4557
4658 @react @react-native
4759 Scenario : Verify that the banner is shown as a modal
4860 When I click the "MODAL" layout radio option
61+ Then the "MODAL" layout radio option is selected
62+ Then I see the "Display Demo Message" button
4963 Then I click the "Display Demo Message" button
5064 Then I see a "modal" dialog
5165
5266 @react @react-native
5367 Scenario : Verify that the banner is shown as fullscreen
5468 When I click the "FULL_SCREEN" layout radio option
69+ Then the "FULL_SCREEN" layout radio option is selected
70+ Then I see the "Display Demo Message" button
5571 Then I click the "Display Demo Message" button
5672 Then I see a "fullscreen" dialog
5773
5874 @react @react-native
5975 Scenario : Verify that top banner is shown with an image
6076 Given "Has Image" checkbox is checked
61- Then "TOP_BANNER" layout radio option is selected
77+ Then the "TOP_BANNER" layout radio option is selected
78+ Then I see the "Display Demo Message" button
6279 When I click the "Display Demo Message" button
6380 Then I see a "top" banner dialog
6481 Then the banner has an image
@@ -68,6 +85,8 @@ Feature: In-App Messaging demo page to show banners with various configurations
6885 When I toggle "Use Analytic events" checkbox
6986 Then I wait for pinpoint messages to sync
7087 Then I click the "TOP_BANNER" layout radio option
88+ Then the "TOP_BANNER" layout radio option is selected
89+ Then I see the "Display Demo Message" button
7190 Then I click the "Display Demo Message" button
7291 Then I see a "top" banner dialog
7392
@@ -76,6 +95,8 @@ Feature: In-App Messaging demo page to show banners with various configurations
7695 When I toggle "Use Analytic events" checkbox
7796 Then I wait for pinpoint messages to sync
7897 Then I click the "BOTTOM_BANNER" layout radio option
98+ Then the "BOTTOM_BANNER" layout radio option is selected
99+ Then I see the "Display Demo Message" button
79100 Then I click the "Display Demo Message" button
80101 Then I see a "bottom" banner dialog
81102
@@ -84,6 +105,8 @@ Feature: In-App Messaging demo page to show banners with various configurations
84105 When I toggle "Use Analytic events" checkbox
85106 Then I wait for pinpoint messages to sync
86107 Then I click the "MIDDLE_BANNER" layout radio option
108+ Then the "MIDDLE_BANNER" layout radio option is selected
109+ Then I see the "Display Demo Message" button
87110 Then I click the "Display Demo Message" button
88111 Then I see a "middle" banner dialog
89112
@@ -92,6 +115,8 @@ Feature: In-App Messaging demo page to show banners with various configurations
92115 When I toggle "Use Analytic events" checkbox
93116 Then I wait for pinpoint messages to sync
94117 Then I click the "MODAL" layout radio option
118+ Then the "MODAL" layout radio option is selected
119+ Then I see the "Display Demo Message" button
95120 Then I click the "Display Demo Message" button
96121 Then I see a "modal" dialog
97122
@@ -100,5 +125,7 @@ Feature: In-App Messaging demo page to show banners with various configurations
100125 When I toggle "Use Analytic events" checkbox
101126 Then I wait for pinpoint messages to sync
102127 Then I click the "FULL_SCREEN" layout radio option
128+ Then the "FULL_SCREEN" layout radio option is selected
129+ Then I see the "Display Demo Message" button
103130 Then I click the "Display Demo Message" button
104131 Then I see a "fullscreen" dialog
0 commit comments