ember-burger-menu icon indicating copy to clipboard operation
ember-burger-menu copied to clipboard

Problems with acceptance testing

Open juanazam opened this issue 8 years ago • 5 comments

Hi,

First of all, thanks for all the hard work on this great addon, it works great!

I'm having issues with opening the menu while writing acceptance tests. I tried pausing the test and opening the menu manually but it refuses to work on the acceptance test environment.

Maybe I'm missing something, but it seems it just doesn't work.

juanazam avatar Jul 16 '17 22:07 juanazam

@juanazam I'm not sure. Can you post some screenshots and some code samples?

offirgolan avatar Jul 21 '17 00:07 offirgolan

@offirgolan The only problem is that the menu transformations are not displayed. The menu is never displayed as open when the test is running. You can do assertions on its content but visually it's not working. I guess this is not a big deal but it is a bit missleading.

juanazam avatar Jul 21 '17 19:07 juanazam

Huh thats weird. It could be some viewport CSS issues. My suggestion would be to use pauseTest() and see what the width / height of the parent containers are for the ember-burger-menu element. If that doesnt work, let me know and I'll try to figure out whats going on.

offirgolan avatar Jul 24 '17 04:07 offirgolan

@offirgolan It seems that the scaling done to show the app within the testing container is messing up with ember-burger-menu's CSS. I already used pauseTest() but I was not able to figure out why it's not being displayed as it should.

juanazam avatar Jul 24 '17 12:07 juanazam

Ah damn. Okay I'll investigate this further and see if I can figure something out.

offirgolan avatar Jul 24 '17 17:07 offirgolan