ember-paper icon indicating copy to clipboard operation
ember-paper copied to clipboard

Can't open paper-menu in acceptance test

Open dgavey opened this issue 7 years ago • 7 comments

I've been upgrading to the latest version of ember-paper (alpha 16) over the last week. It's gone fairly well. However all my tests that were running previously using paper-menus are now broken.

I've paused the acceptance test right before it is supposed to click on a trigger to open a paper-menu and I have tried to click on it directly. I don't get any error message, but they just won't open.

I've looked in to the ember-basic-dropdown which it's based on and tried his helpers, but still no luck.

Wondering if anyone else has seen this, or knows how I could resolve it?

dgavey avatar Feb 28 '17 03:02 dgavey

@dgavey I was able to get the ember-basic-dropdown helpers working. I will put together a PR for ember-paper testing helpers.

mellatone avatar Feb 28 '17 05:02 mellatone

Thanks for the reply, I'll take a closer look at them then.

dgavey avatar Feb 28 '17 14:02 dgavey

Ok, I was able to get it working with and without the ember-basic-dropdown helpers. The big issue was that the paper-menu items were displaying but were hidden. I'm still not sure why they are hidden when in testing mode, but the scripts can fire them so I'm past the issue.

dgavey avatar Feb 28 '17 16:02 dgavey

Also experiencing a similar issue. Seems like <div id="ember-basic-dropdown-wormhole"> isn't added in tests.

knownasilya avatar Jun 17 '17 03:06 knownasilya

I'm also having the same issue, were you able to solve it?

evadelnuevo avatar Oct 30 '17 15:10 evadelnuevo

Not yet, they are still hidden, but in the DOM.

dgavey avatar Oct 30 '17 17:10 dgavey

Hello, currently working with paper-menu and unable to test. Could someone tell me how they got it working in acceptance tests. I tried using ember-basic-dropdown test helpers. My tests pass when I check if the menu items are rendered but when I pause my test, the menu is not visible in the view.. Thank you

guillaumegtr avatar Aug 19 '19 17:08 guillaumegtr