Comments (10)
Keep pushing it slowly. I think I'd like to make it work on the v2 branch first, cause there should be just a bit less magic, and if there are some blockers, we're a bit safer to adjust it there.
Currently, it's blocked with some issues related tobuildEmberPlugins(
, which we've started to use in the #531. Reported it to the ember-cli-babel for now(emberjs/ember-cli-babel#398).
from ember-cli-page-object.
A quick update. I've started looking into this. The first blocker appeared is TS tests. Created a ticket for this(embroider-build/embroider#691), Hopefuly, it'd be easy to fix.
from ember-cli-page-object.
That latter issue (the one about emberDeprecate
) is something I ran into as well -- #540 should fix that part!
from ember-cli-page-object.
@ro0gr no problem. I tried to initially put together a PR which added Embroider ember-try scenarios but it failed spectacularly 😃 As you mention it looked to be because of the old ember-cli/ember-cli-babel etc and I didn't want to boil the ocean 😅
@alexlafroscia thanks for figuring out the emberDeprecate
issue in #540 🙌
from ember-cli-page-object.
Well, the day has come 🙂 Thanks for opening the Embroider topic!
I meant to test against it for a quite a long time, but didn't really know how to do it. I suspect an old ember-cli-babel@6 would be one of the first blocker for that. I'd give it a try by adding an ember-try scenario(ispired by ember-cli/ember-cli#9436), let's see how far we can go in scope of ec-page-object@v1.
from ember-cli-page-object.
I just debugged this with @thoov and @krisselden (working on one of our internal applications). The basic issue is that this code:
ember-cli-page-object/addon-test-support/-private/compatibility.js
Lines 43 to 51 in 82b7e85
Is not understood by Embroider (with that staticAddonTestSupportTrees flag set to true
). We end up hitting the else case in this conditional (and any others that use require.has
like this) and then not finding the associated context.
from ember-cli-page-object.
The thing I'm not sure about here are if we actually have the same support constraints as were in place when this compatibility layer was introduced?
from ember-cli-page-object.
I think the things that are being done there could be implemented in terms of @embroider/macros
🤔
from ember-cli-page-object.
@rwjblue sorry for inconveniences. It takes a some longer to move it to the finish line, but we are going to solve it soon.
I think the things that are being done there could be implemented in terms of @embroider/macros 🤔
Maybe it could, though I haven't tried it and not sure if it requires ember-auto-import@2
to be installed to make it work(which would be a breaking change). In case if it's possible to do in a backward compatible way I'd be glad to accept such a PR. However, TBH, I suspect there might appear some other roadblocks for the proper embroider support, related to some tricks in the https://github.com/san650/ember-cli-page-object/blob/master/index.js, or what else stuff.
The current plan is to remove this compatibility layer completely for the next major release of ec-page-object, and make embroider supported properly.
from ember-cli-page-object.
This should be addressed now in the v2.0.0-beta.3
from ember-cli-page-object.
Related Issues (20)
- How to replace deprecated `is(':focus')`? HOT 3
- Errors running tests since upgrading to v5 of `ember-qunit` HOT 7
- Deprecation calls need to be updated for compat with Ember 3.24 HOT 2
- new deprecation: `create-url-argument` *always* throws when an object is passed to create. HOT 4
- Query Engines
- Assign is being referenced from @ember/polyfills. This prevents upgrade to Ember 4 HOT 4
- Update ember-cli-babel HOT 5
- migrate to v2 Addon Format HOT 4
- Types require allowSyntheticDefaultImports=true HOT 2
- Replace usage of ember-native-dom-helpers by @ember/test-helpers HOT 1
- is there a way to create recursive page object? HOT 2
- docs: clickable needs to be awaited HOT 2
- All imports must be declared as dependencies or peers HOT 3
- Fix support for @tsconfig/ember 3.0.0 error TS7016 HOT 6
- [Quest] Remove jquery
- get rid of `$.param(`
- `$.prop(`
- deprecate finders `scope` option
- string getters on a collection definition raise error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-page-object.