Skip to content

make it node.js compatible  #512

@ro0gr

Description

@ro0gr

With adapters we should be able to configure page object interactions per different environments. However, there are still some blockers to make page objects work cross-env. The goal of the ticket is to build a path forward for page objects to work in node, and probably other envs like different FWs etc.

@ember/*

There are some of ember packages we do currently depend on, and they don't have standalone packages published.

"jquery" VS "-jquery"

-jquery is a synthetic module (#1, #2), which is only needed to ensure we use the same instance of jQuery, in case if an app depends on jQuery events. However, when ec-page-object tries to import it in node env, it fails, cause there is no EmberCli build process envolved, and -jquery is not liseted in the package.json.

I think we should isolate -jquery imports in the ember adapters, and use jquery for the rest of the places. So it stays resolvable for node, until Ember specific adapters are used.

Ceibo

seems it does no support node require. Needs some attention.

Test

  • A node.js test needed. It should serve a dummy page, page.visit((via a custom Adapter for node.js), and do a smoke test of the page object. Node test #538

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions