@@ -64,15 +64,15 @@ describe('Carousel component', () => {
6464 // Carousel toolbar
6565 const [ toolbar ] = el . getElementsByClassName ( 'ms-content-toolbar' ) ;
6666 expect ( toolbar ) . toExist ( ) ;
67- const buttons = toolbar . querySelectorAll ( '.btn-group span button' ) ;
67+ const buttons = toolbar . querySelectorAll ( '.btn-group button' ) ;
6868 expect ( buttons . length ) . toBe ( 2 ) ;
6969 expect ( buttons [ 0 ] . querySelector ( '.glyphicon-plus' ) ) . toExist ( ) ;
7070 expect ( buttons [ 1 ] . querySelector ( '.glyphicon-trash' ) ) . toExist ( ) ;
7171
7272 // Carousel item toolbar
7373 const itemToolbar = container . querySelector ( '.ms-geo-carousel-item-wrapper .ms-content-toolbar' ) ;
7474 expect ( itemToolbar ) . toBeTruthy ( ) ;
75- const itemButtons = itemToolbar . querySelectorAll ( '.btn-group span button' ) ;
75+ const itemButtons = itemToolbar . querySelectorAll ( '.btn-group button' ) ;
7676 expect ( itemButtons . length ) . toBe ( 3 ) ;
7777 expect ( itemButtons [ 0 ] . querySelector ( '.glyphicon-pencil' ) ) . toExist ( ) ;
7878 expect ( itemButtons [ 1 ] . querySelector ( '.glyphicon-trash' ) ) . toExist ( ) ;
@@ -94,15 +94,15 @@ describe('Carousel component', () => {
9494 // Carousel toolbar
9595 const [ toolbar ] = el . getElementsByClassName ( 'ms-content-toolbar' ) ;
9696 expect ( toolbar ) . toExist ( ) ;
97- const buttons = toolbar . querySelectorAll ( '.btn-group span button' ) ;
97+ const buttons = toolbar . querySelectorAll ( '.btn-group button' ) ;
9898 expect ( buttons . length ) . toBe ( 2 ) ;
9999 expect ( buttons [ 0 ] . classList . contains ( 'disabled' ) ) . toBeTruthy ( ) ;
100100 expect ( buttons [ 1 ] . classList . contains ( 'disabled' ) ) . toBeFalsy ( ) ;
101101
102102 // Carousel item toolbar
103103 const itemToolbar = container . querySelector ( '.ms-geo-carousel-item-wrapper .ms-content-toolbar' ) ;
104104 expect ( itemToolbar ) . toBeTruthy ( ) ;
105- const itemButtons = itemToolbar . querySelectorAll ( '.btn-group span button' ) ;
105+ const itemButtons = itemToolbar . querySelectorAll ( '.btn-group button' ) ;
106106 expect ( itemButtons . length ) . toBe ( 3 ) ;
107107 expect ( itemButtons [ 0 ] . classList . contains ( 'disabled' ) ) . toBeFalsy ( ) ;
108108 expect ( itemButtons [ 1 ] . classList . contains ( 'disabled' ) ) . toBeTruthy ( ) ;
@@ -177,7 +177,7 @@ describe('Carousel component', () => {
177177 // Carousel toolbar
178178 const [ toolbar ] = el . getElementsByClassName ( 'ms-content-toolbar' ) ;
179179 expect ( toolbar ) . toExist ( ) ;
180- const buttons = toolbar . querySelectorAll ( '.btn-group span button' ) ;
180+ const buttons = toolbar . querySelectorAll ( '.btn-group button' ) ;
181181 expect ( buttons . length ) . toBe ( 2 ) ;
182182 const [ addButton ] = buttons ;
183183 expect ( addButton . querySelector ( '.glyphicon-plus' ) ) . toExist ( ) ;
@@ -202,7 +202,7 @@ describe('Carousel component', () => {
202202 // Carousel toolbar
203203 const [ toolbar ] = el . getElementsByClassName ( 'ms-content-toolbar' ) ;
204204 expect ( toolbar ) . toExist ( ) ;
205- const buttons = toolbar . querySelectorAll ( '.btn-group span button' ) ;
205+ const buttons = toolbar . querySelectorAll ( '.btn-group button' ) ;
206206 expect ( buttons . length ) . toBe ( 2 ) ;
207207 const removeButton = buttons [ 1 ] ;
208208 expect ( removeButton . querySelector ( '.glyphicon-trash' ) ) . toExist ( ) ;
@@ -233,7 +233,7 @@ describe('Carousel component', () => {
233233 // Carousel item toolbar
234234 const itemToolbar = container . querySelectorAll ( '.ms-geo-carousel-item-wrapper .ms-content-toolbar' ) ;
235235 expect ( itemToolbar . length ) . toBeTruthy ( ) ;
236- const itemButtons = itemToolbar [ 1 ] . querySelectorAll ( '.btn-group span button' ) ;
236+ const itemButtons = itemToolbar [ 1 ] . querySelectorAll ( '.btn-group button' ) ;
237237 expect ( itemButtons . length ) . toBe ( 3 ) ;
238238 const removeButton = itemButtons [ 1 ] ;
239239 TestUtils . Simulate . click ( removeButton ) ;
@@ -263,7 +263,7 @@ describe('Carousel component', () => {
263263 // Carousel item toolbar
264264 const itemToolbar = container . querySelector ( '.ms-geo-carousel-item-wrapper .ms-content-toolbar' ) ;
265265 expect ( itemToolbar ) . toBeTruthy ( ) ;
266- const itemButtons = itemToolbar . querySelectorAll ( '.btn-group span button' ) ;
266+ const itemButtons = itemToolbar . querySelectorAll ( '.btn-group button' ) ;
267267 expect ( itemButtons . length ) . toBe ( 3 ) ;
268268 const markerButton = itemButtons [ 2 ] ;
269269 TestUtils . Simulate . click ( markerButton ) ;
0 commit comments