File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
dev/tests/functional/tests/app/Magento/Setup/Test Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,21 @@ class Readiness extends Block
41
41
*
42
42
* @var string
43
43
*/
44
- protected $ removeExtension = '//li//strong[contains(text(), \'%s \')]//..//button ' ;
44
+ protected $ removeExtension = '//li[contains(text(), \'%s \')]//button ' ;
45
+
46
+ /**
47
+ * Remove button on modal.
48
+ *
49
+ * @var string
50
+ */
51
+ protected $ removeExtensionButtonOnModal = "[ng-click*='removeExtension'] " ;
52
+
53
+ /**
54
+ * Remove popup modal.
55
+ *
56
+ * @var string
57
+ */
58
+ protected $ popupRemoveModal = '.modal-popup ' ;
45
59
46
60
/**
47
61
* 'Completed!' message.
@@ -137,6 +151,17 @@ public function clickRemoveExtension(Extension $extension)
137
151
$ this ->_rootElement ->find ($ removeExtension , Locator::SELECTOR_XPATH )->click ();
138
152
}
139
153
154
+ /**
155
+ * Click Remove button on modal.
156
+ *
157
+ * @return void
158
+ */
159
+ public function clickRemoveExtensionOnModal ()
160
+ {
161
+ $ this ->_rootElement ->find ($ this ->removeExtensionButtonOnModal , Locator::SELECTOR_CSS )->click ();
162
+ $ this ->waitForElementNotVisible ($ this ->popupRemoveModal , Locator::SELECTOR_CSS );
163
+ }
164
+
140
165
/**
141
166
* Get Updater application check result.
142
167
*
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public function test(
96
96
/** @var Extension $removeExtension */
97
97
foreach ($ removeExtensions as $ removeExtension ) {
98
98
$ this ->setupWizard ->getReadiness ()->clickRemoveExtension ($ removeExtension );
99
+ $ this ->setupWizard ->getReadiness ()->clickRemoveExtensionOnModal ();
99
100
}
100
101
101
102
$ this ->setupWizard ->getReadiness ()->clickTryAgain ();
You can’t perform that action at this time.
0 commit comments