GithubHelp home page GithubHelp logo

Comments (10)

ro0gr avatar ro0gr commented on June 11, 2024 4

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.

ro0gr avatar ro0gr commented on June 11, 2024 3

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.

alexlafroscia avatar alexlafroscia commented on June 11, 2024 1

That latter issue (the one about emberDeprecate) is something I ran into as well -- #540 should fix that part!

from ember-cli-page-object.

patocallaghan avatar patocallaghan commented on June 11, 2024 1

@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.

ro0gr avatar ro0gr commented on June 11, 2024

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.

rwjblue avatar rwjblue commented on June 11, 2024

I just debugged this with @thoov and @krisselden (working on one of our internal applications). The basic issue is that this code:

if (require.has('@ember/test-helpers')) {
helpers = require('@ember/test-helpers');
} else {
helpers = {
getContext() {
return null;
}
};
}

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.

rwjblue avatar rwjblue commented on June 11, 2024

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.

rwjblue avatar rwjblue commented on June 11, 2024

I think the things that are being done there could be implemented in terms of @embroider/macros 🤔

from ember-cli-page-object.

ro0gr avatar ro0gr commented on June 11, 2024

@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.

ro0gr avatar ro0gr commented on June 11, 2024

This should be addressed now in the v2.0.0-beta.3

from ember-cli-page-object.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.