File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ describe("TableRowActions", () => {
91
91
</ >
92
92
) ;
93
93
94
+ cy . get ( "@table" ) . then ( $table => {
95
+ $table [ 0 ] . addEventListener ( "row-click" , cy . stub ( ) . as ( "rowClick" ) ) ;
96
+ } ) ;
97
+
94
98
cy . get ( "@headerRow" ) . shadow ( ) . find ( "#actions-cell" ) . should ( "exist" ) ;
95
99
cy . get ( "@innerTable" ) . should ( "have.css" , "gridTemplateColumns" , `${ 8 + 36 + 4 + 36 + 8 } px` ) ;
96
100
cy . get ( "@row1" ) . shadow ( ) . find ( "#actions-cell" ) . children ( ) . as ( "actions" ) ;
@@ -157,6 +161,8 @@ describe("TableRowActions", () => {
157
161
cy . get ( "@innerTable" ) . should ( "have.css" , "gridTemplateColumns" , `${ 8 + 36 + 8 } px` ) ;
158
162
cy . get ( "@actions" ) . should ( "have.length" , 1 ) ;
159
163
cy . get ( "@actions" ) . eq ( 0 ) . should ( "have.attr" , "icon" , "overflow" ) ;
164
+
165
+ cy . get ( "@rowClick" ) . should ( "have.callCount" , 0 ) ;
160
166
} ) ;
161
167
162
168
it ( "tests that invisible actions occupy space for alignment" , ( ) => {
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ class TableRow extends TableRowBase {
156
156
_onOverflowButtonClick ( e : MouseEvent ) {
157
157
const ctor = this . actions [ 0 ] . constructor as typeof TableRowActionBase ;
158
158
ctor . showMenu ( this . _overflowActions , e . target as HTMLElement ) ;
159
+ e . stopPropagation ( ) ;
159
160
}
160
161
161
162
get _isInteractive ( ) {
You can’t perform that action at this time.
0 commit comments