@@ -51,18 +51,18 @@ public function testCreatePromotion() {
5151
5252 $ this ->getSession ()->getPage ()->selectFieldOption ('offer[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_product_percentage_off ' );
5353 $ 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 ' );
5555
5656 // Change, assert any values reset.
5757 $ this ->getSession ()->getPage ()->selectFieldOption ('offer[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_order_percentage_off ' );
5858 $ 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 ' );
6161
6262 $ this ->getSession ()->getPage ()->selectFieldOption ('conditions[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_order_total_price ' );
6363 $ 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] ' );
6666
6767 // Confirm that the usage limit widget works properly.
6868 $ this ->getSession ()->getPage ()->hasCheckedField (' Unlimited ' );
@@ -110,13 +110,13 @@ public function testCreatePromotionWithEndDate() {
110110 $ name = $ this ->randomMachineName (8 );
111111 $ edit = [
112112 '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 ' ,
114114 ];
115115
116116 $ this ->getSession ()->getPage ()->fillField ('conditions[0][plugin_select][target_plugin_id] ' , 'commerce_promotion_order_total_price ' );
117117 $ this ->waitForAjaxToFinish ();
118118
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 ' ;
120120
121121 // Set an end date.
122122 $ this ->getSession ()->getPage ()->checkField ('end_date[0][has_value] ' );
@@ -155,7 +155,7 @@ public function testEditPromotion() {
155155 $ new_promotion_name = $ this ->randomMachineName (8 );
156156 $ edit = [
157157 '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 ' ,
159159 ];
160160 $ this ->submitForm ($ edit , 'Save ' );
161161
0 commit comments