File tree Expand file tree Collapse file tree 1 file changed +0
-42
lines changed
tests/integration/components Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Original file line number Diff line number Diff line change @@ -27,46 +27,4 @@ module('Integration | Component | es-sidebar', function (hooks) {
2727 await click ( '.es-sidebar-close' ) ;
2828 assert . dom ( '.es-sidebar' ) . hasAttribute ( 'aria-expanded' , 'false' ) ;
2929 } ) ;
30-
31- test ( 'it has the correct styles when in a .sidebar-container' , async function ( assert ) {
32- await render ( hbs `
33- <div class="sidebar-container">
34- <EsSidebar>Test</EsSidebar>
35- </div>
36- ` ) ;
37-
38- assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
39- width : '300px' ,
40- } ) ;
41-
42- await render ( hbs `
43- <div class="sidebar-container">
44- <div data-test-content-left>Content left</div>
45- <EsSidebar>Test</EsSidebar>
46- </div>
47- ` ) ;
48-
49- assert . dom ( '[data-test-content-left]' ) . hasStyle ( {
50- width : '604px' ,
51- } ) ;
52- assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
53- width : '300px' ,
54- margin : '0px' ,
55- } ) ;
56-
57- await render ( hbs `
58- <div class="sidebar-container">
59- <EsSidebar>Test</EsSidebar>
60- <div data-test-content-right>Content right</div>
61- </div>
62- ` ) ;
63-
64- assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
65- width : '300px' ,
66- margin : '0px' ,
67- } ) ;
68- assert . dom ( '[data-test-content-right]' ) . hasStyle ( {
69- width : '604px' ,
70- } ) ;
71- } ) ;
7230} ) ;
You can’t perform that action at this time.
0 commit comments