@@ -51,18 +51,18 @@ public function testCreatePromotion() {
51
51
52
52
$ this ->getSession ()->getPage ()->selectFieldOption ('offer[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_product_percentage_off ' );
53
53
$ this ->waitForAjaxToFinish ();
54
- $ this ->getSession ()->getPage ()->fillField ('offer[0][plugin_select][target_plugin_configuration][amount] ' , '10.0 ' );
54
+ $ this ->getSession ()->getPage ()->fillField ('offer[0][plugin_select][target_plugin_configuration][form][ amount] ' , '10.0 ' );
55
55
56
56
// Change, assert any values reset.
57
57
$ this ->getSession ()->getPage ()->selectFieldOption ('offer[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_order_percentage_off ' );
58
58
$ this ->waitForAjaxToFinish ();
59
- $ this ->assertSession ()->fieldValueNotEquals ('offer[0][plugin_select][target_plugin_configuration][amount] ' , '10.0 ' );
60
- $ this ->getSession ()->getPage ()->fillField ('offer[0][plugin_select][target_plugin_configuration][amount] ' , '10.0 ' );
59
+ $ this ->assertSession ()->fieldValueNotEquals ('offer[0][plugin_select][target_plugin_configuration][form][ amount] ' , '10.0 ' );
60
+ $ this ->getSession ()->getPage ()->fillField ('offer[0][plugin_select][target_plugin_configuration][form][ amount] ' , '10.0 ' );
61
61
62
62
$ this ->getSession ()->getPage ()->selectFieldOption ('conditions[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_order_total_price ' );
63
63
$ this ->waitForAjaxToFinish ();
64
- $ this ->getSession ()->getPage ()->fillField ('conditions[0][plugin_select][target_plugin_configuration][amount][number] ' , '50.00 ' );
65
- $ this ->getSession ()->getPage ()->checkField ('conditions[0][plugin_select][target_plugin_configuration][negate] ' );
64
+ $ this ->getSession ()->getPage ()->fillField ('conditions[0][plugin_select][target_plugin_configuration][form][ amount][number] ' , '50.00 ' );
65
+ $ this ->getSession ()->getPage ()->checkField ('conditions[0][plugin_select][target_plugin_configuration][form][ negate] ' );
66
66
67
67
// Confirm that the usage limit widget works properly.
68
68
$ this ->getSession ()->getPage ()->hasCheckedField (' Unlimited ' );
@@ -110,13 +110,13 @@ public function testCreatePromotionWithEndDate() {
110
110
$ name = $ this ->randomMachineName (8 );
111
111
$ edit = [
112
112
'name[0][value] ' => $ name ,
113
- 'offer[0][plugin_select][target_plugin_configuration][amount] ' => '10.0 ' ,
113
+ 'offer[0][plugin_select][target_plugin_configuration][form][ amount] ' => '10.0 ' ,
114
114
];
115
115
116
116
$ this ->getSession ()->getPage ()->fillField ('conditions[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_order_total_price ' );
117
117
$ this ->waitForAjaxToFinish ();
118
118
119
- $ edit ['conditions[0][plugin_select][target_plugin_configuration][amount][number] ' ] = '50.00 ' ;
119
+ $ edit ['conditions[0][plugin_select][target_plugin_configuration][form][ amount][number] ' ] = '50.00 ' ;
120
120
121
121
// Set an end date.
122
122
$ this ->getSession ()->getPage ()->checkField ('end_date[0][has_value] ' );
@@ -155,7 +155,7 @@ public function testEditPromotion() {
155
155
$ new_promotion_name = $ this ->randomMachineName (8 );
156
156
$ edit = [
157
157
'name[0][value] ' => $ new_promotion_name ,
158
- 'offer[0][plugin_select][target_plugin_configuration][amount] ' => '20 ' ,
158
+ 'offer[0][plugin_select][target_plugin_configuration][form][ amount] ' => '20 ' ,
159
159
];
160
160
$ this ->submitForm ($ edit , 'Save ' );
161
161
0 commit comments