Skip to content

Commit

Permalink
Merge pull request #65 from wix-incubator/migration-doc
Browse files Browse the repository at this point in the history
Migration doc
  • Loading branch information
Gabriel Grinberg authored Apr 2, 2019
2 parents 9e65e67 + d78c035 commit 5c5a091
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Making BDD fun in the modular UI area.

UniDriver makes it saner to write UI testing. It enables creating component drivers that will work on all platforms, from jsdom to puppeteer and selenium.

[Migrating from ~v2.0.1 to latest version](/migrating.md)

## Component Drivers
Testing UI is hard. There are many reasons for that, but we believe a big one relies in the fact that unlike functions or services, where the API is clearly defined, when dealing with graphical user interfaces, it's up for the developer to transform it into an "API" for testing purposes.
Back in the days, [PageObjects](https://martinfowler.com/bliki/PageObject.html) helped mitigate this fact, but once the world moved to modular components, our test code quality degraded and became bloated with repetition and lack of abstraction.
Expand Down
9 changes: 9 additions & 0 deletions migrating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Migration from `unidriver@~2.0.1` to `@unidriver/* latest`

If you are migrating from a previous version of `unidriver`, before the seperation of adapters, you will need to take the following breaking change into account:

| method | `[email protected]` | `@unidriver/* latest` |
|-----------|-------------------|---------------------|
| pupUniDriver | `(el: ElementGetter): UniDriver<ElementHandle>` | `( el: ElementGetter \| BaseElementContainer): UniDriver<ElementContainer>` |
| reactUniDriver | `reactUniDriver` | `jsdomReactUniDriver`|
| `attr` | `(name: string) => Promise<string>;` | `(name: string) => Promise<string \| null>` |

0 comments on commit 5c5a091

Please sign in to comment.