Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 beta #522

Merged
merged 210 commits into from
Mar 5, 2023
Merged

V2 beta #522

merged 210 commits into from
Mar 5, 2023

Conversation

ro0gr
Copy link
Collaborator

@ro0gr ro0gr commented Nov 22, 2020

No description provided.

ro0gr added 30 commits March 29, 2020 22:19
This reverts commit 0c209b4, reversing
changes made to 01fef9c.
v2: remove "multiple" option support
[v2] remove "mutliple" deprecation from finders
this allows to reduce need for direct `throwBetterError(` usages,
and respect initiators stacktrace.
Introduce (private) `action`
In order to set a custom adapter, you can do it globally in global your test
helper, like:

```js
// tests/test-helper.js

import MyAdapter from 'path/to/adapter';
import { setAdapter } from 'ember-cli-page-object/adapters';

setAdapter(new MyAdapter());
```

in case you you need multiple adapters being set for different modules,
make sure to set a teardown it before each test:

```js
  hooks.beforeEach(function() {
    setAdapter(new MyAdapter());
  });

  hooks.beforeEach(function() {
    setAdapter(null);
  });
```

by default, if no adapter set, `RFC268Adapter` is used.

This PR does also introduce few of the old and deprecated
ModuleFor-only related APIs, like:

     - `getContext(`
     - `setContext(`
     - `removeContext(`
     - `render(`
     - `page.context`
     - `useNativeEvents(`
     - `andThen` behavior support. Now you have to explicitly wait for the
     previous action to complete.

And some APIs that just don't make sense anymore:

     - `registerExecutionContext`
ro0gr added 26 commits November 22, 2022 22:33
promote `getter` as a public way to create custom properties
to have `scope` as an optional argument
types(v2): Allow synthetic default imports
before the change a raw ember error was used,
which was not informative enough
…-to-error

v2: replace `create-url-argument` deprecation with error
…cation-to-error

v2: turn comma-separated-selectors deprecation into error
- update tests to avoid use of string properties

- convert affected tests to TS
…error

V2/"string-property" deprecation to error
@ro0gr ro0gr marked this pull request as ready for review March 4, 2023 14:37
@ro0gr ro0gr merged commit 3abb931 into master Mar 5, 2023
@jrjohnson
Copy link
Contributor

🎉 awesome work @ro0gr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants