File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/Ui/view/base/web/js/grid/columns
dev/tests/functional/tests/app/Magento/Cms/Test/Block/Adminhtml/Page Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ define([
15
15
defaults : {
16
16
bodyTmpl : 'ui/grid/cells/actions' ,
17
17
actions : [ ] ,
18
- templates : { } ,
18
+ templates : {
19
+ actions : { }
20
+ } ,
19
21
rowsProvider : '${ $.parentName }' ,
20
22
imports : {
21
23
rows : '${ $.rowsProvider }:rows'
@@ -42,7 +44,7 @@ define([
42
44
* or all action objects associated with it.
43
45
*
44
46
* @param {Number } rowIndex - Index of a row.
45
- * @param {String } [actionIndex]
47
+ * @param {String } [actionIndex] - Action identifier.
46
48
* @returns {Array|Object }
47
49
*/
48
50
getAction : function ( rowIndex , actionIndex ) {
@@ -107,9 +109,9 @@ define([
107
109
* @returns {Array }
108
110
*/
109
111
_formatActions : function ( row , rowIndex ) {
110
- var rowActions = row [ this . index ] ,
112
+ var rowActions = row [ this . index ] || { } ,
111
113
recordId = row [ this . indexField ] ,
112
- customActions = this . templates . customActions ;
114
+ customActions = this . templates . actions ;
113
115
114
116
/**
115
117
* Actions iterator.
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ public function searchAndPreview(array $filter)
83
83
if ($ rowItem ->isVisible ()) {
84
84
$ rowItem ->find ('.action-select ' )->click ();
85
85
$ rowItem ->find (sprintf ($ this ->previewCmsPage , $ itemName ), Locator::SELECTOR_XPATH )->click ();
86
- $ this ->waitForElement ();
87
86
} else {
88
87
throw new \Exception ('Searched item was not found. ' );
89
88
}
You can’t perform that action at this time.
0 commit comments