From 3c9352bba8912f4788817d8747af7c700fb545fe Mon Sep 17 00:00:00 2001 From: Boris Dichter Date: Mon, 1 Apr 2019 11:19:22 +0300 Subject: [PATCH 1/3] Create migration.md --- migration.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 migration.md diff --git a/migration.md b/migration.md new file mode 100644 index 0000000..1997401 --- /dev/null +++ b/migration.md @@ -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 | `unidriver@2.0.1` | `@unidriver/* latest` | +|-----------|-------------------|---------------------| +| pupUniDriver | `(el: ElementGetter): UniDriver` | `( el: ElementGetter \| BaseElementContainer): UniDriver` | +| reactUniDriver | `reactUniDriver` | `jsdomReactUniDriver`| +| `attr` | `(name: string) => Promise;` | `(name: string) => Promise` | From c497f4b8188207d94f1a3a54e7eff69bd61c9ca4 Mon Sep 17 00:00:00 2001 From: Boris Dichter Date: Mon, 1 Apr 2019 11:21:03 +0300 Subject: [PATCH 2/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d939889..415e780 100644 --- a/README.md +++ b/README.md @@ -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. From d78c035cc02294e1b43bc9ce0b0b7f134259555b Mon Sep 17 00:00:00 2001 From: Boris Dichter Date: Mon, 1 Apr 2019 11:21:35 +0300 Subject: [PATCH 3/3] Rename migration.md to migrating.md --- migration.md => migrating.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename migration.md => migrating.md (100%) diff --git a/migration.md b/migrating.md similarity index 100% rename from migration.md rename to migrating.md