changelog
10.0.6 (2024-05-24)
Bug Fixes
10.0.5 (2024-05-06)
Bug Fixes
- cucumber peer deps: allow >=15 instead of ^15 (86cd6fb)
10.0.4 (2024-05-01)
Bug Fixes
- allow cypress@^13 as a peer dependency (ac53fd3)
10.0.3 (2023-05-23)
Bug Fixes
10.0.2 (2023-05-03)
Bug Fixes
10.0.1 (2023-05-01)
Bug Fixes
10.0.0 (2023-04-27)
Features
BREAKING CHANGES
- cypress 12 uses a different naming scheme for folders, files and extensions
- This removes the
d2-utils-cypress
cli tool!
Co-authored-by: Hendrik de Graaf hendrik@dhis2.org
9.0.2 (2022-02-07)
Bug Fixes
- create fixtures from state: use
replace
instead ofreplaceAll
(088a5fc)
9.0.1 (2021-11-09)
Bug Fixes
- network shim: wait for network idle after tests (d025422)
9.0.0 (2021-11-04)
Bug Fixes
- network shim: use "Cypress.currentTest" in "getFeatureName" (573bd78)
chore
- dependencies: add cypress@^8.2 as peer dependency (e0c40e7)
BREAKING CHANGES
- dependencies: Adds cypress with min version 8.2 as peer dependency
8.0.6 (2021-10-28)
Bug Fixes
8.0.5 (2021-10-27)
Bug Fixes
8.0.4 (2021-10-01)
Bug Fixes
- network shim: add missing "experimentalInteractiveRunEvents" (880c490)
8.0.3 (2021-08-24)
Bug Fixes
8.0.2 (2021-08-23)
Bug Fixes
8.0.1 (2021-06-10)
Bug Fixes
8.0.0 (2021-06-10)
Bug Fixes
- network-shim: ensure DHIS2_BASE_URL is available in localStorage (#214) (741ab4b)
- network-shim: ensure in-test fixtures are used instead of shim fixtures (#176) (84a1907)
- network-shim: fix before hook bug (#201) (0e1cd4c)
- network-shim: only incrementally update missing request stub state (#209) (e2ccea8)
- network-shim: report missing stubs if at least one is found (#208) (45b3331)
- network-shim: use electron instead of chrome for runs (#213) (ae73686)
chore
- remove node 10 support (6245ef2)
Code Refactoring
- install command: combine network shim command & plugin options (4bc9a4e)
- drop the app-start flag (9674d87)
- simplify cypress-plugin and cli-utils-cypress (dc58462)
- wait for baseUrl to become available (745194f)
Features
- enable auto login: add option to install command (e9dde4e)
- install cmd: warn about potentially missing peer depds (temporarily) (c3046aa)
BREAKING CHANGES
- install command: The two options are merged into one, which is now called "enableNetworkShim".
- New minimum version for NodeJS is 12.x.
- Drop run and open commands We want to be consistent with how Cypress runs locally and in CI and since we cannot use d2-utils-cypress in CI, we shouldn't run it through d2-utils-cypress locally either.
- Change configuration keys to camelCase.
- dhis2_username => dhis2Username
- dhis2_password => dhis2Password
- dhis2_base_url => dhis2BaseUrl
- dhis2_datatest_prefix => dhis2DataTestPrefix
- dhis2_api_version => dhis2ApiVersion
- dhis2_api_stub_mode renamed to networkMode Instead of describing the mode of the plugin, it is a bit easier to understand if we speak in terms of the network:
- do we want to capture the network traffic (networkMode=capture),
- do we want to stub it (networkMode=stub),
- or do we want to run it against a live backend (networkMode=live)?
-
'DISABLED' renamed to 'LIVE' To better describe the state of the network when running tests instead of describing the state of the plugin, DISABLED is now LIVE.
-
isDisabledMode renamed to isLiveMode. Similar to the above, to better describe the state of the network vs. the state of the plugin, replace usages of isDisabledMode with isLiveMode.
-
'CAPTURE'|'STUB'|'LIVE' are now lowercase when passed to the environment. Replace networkMode=LIVE with networkMode=live.
-
Drop the --waitOn flag As of now we wait on the baseUrl that is defined in cypress.json, as that is the URL that the tests are going to run against.
-
Drop support for the --appStart flag. As a consumer, you are expected to either use something like concurrently to run the app server and the cypress server in a single process, or run then manually in two separate processes. This is no longer done automatically.
-
network-shim: bumps cypress 1 major version, to v7
-
fix(network-shim): filter request and response headers properties
This was planned anyway to keep fixtures stable. But also turned out to be required due to a bug: https://github.com/cypress-io/cypress/issues/16420
-
fix(network-shim): disable auto-login during stub run
-
fix(network-shim): add 'system/info' resource to static resources list
-
feat(network-shim): run tests suite on CI
-
docs(network-shim): add info about the network-shim test suite
-
chore(network-shim): add command to locally run full e2e suite
-
docs(network-shim): add info reg troubleshooting and local full test run
-
chore(cy local): run build command before cypress commands
Co-authored-by: Jan-Gerke Salomon jgs.salomon@gmail.com
8.0.0-alpha.9 (2021-06-09)
chore
- remove node 10 support (6245ef2)
Code Refactoring
- install command: combine network shim command & plugin options (4bc9a4e)
Features
- enable auto login: add option to install command (e9dde4e)
- install cmd: warn about potentially missing peer depds (temporarily) (c3046aa)
BREAKING CHANGES
- install command: The two options are merged into one, which is now called "enableNetworkShim".
- New minimum version for NodeJS is 12.x.
8.0.0-alpha.8 (2021-06-03)
Code Refactoring
- simplify cypress-plugin and cli-utils-cypress (dc58462)
BREAKING CHANGES
- Drop run and open commands We want to be consistent with how Cypress runs locally and in CI and since we cannot use d2-utils-cypress in CI, we shouldn't run it through d2-utils-cypress locally either.
- Change configuration keys to camelCase.
- dhis2_username => dhis2Username
- dhis2_password => dhis2Password
- dhis2_base_url => dhis2BaseUrl
- dhis2_datatest_prefix => dhis2DataTestPrefix
- dhis2_api_version => dhis2ApiVersion
- dhis2_api_stub_mode renamed to networkMode Instead of describing the mode of the plugin, it is a bit easier to understand if we speak in terms of the network:
- do we want to capture the network traffic (networkMode=capture),
- do we want to stub it (networkMode=stub),
- or do we want to run it against a live backend (networkMode=live)?
- 'DISABLED' renamed to 'LIVE' To better describe the state of the network when running tests instead of describing the state of the plugin, DISABLED is now LIVE.
- isDisabledMode renamed to isLiveMode. Similar to the above, to better describe the state of the network vs. the state of the plugin, replace usages of isDisabledMode with isLiveMode.
- 'CAPTURE'|'STUB'|'LIVE' are now lowercase when passed to the environment. Replace networkMode=LIVE with networkMode=live.
8.0.0-alpha.7 (2021-06-02)
Code Refactoring
BREAKING CHANGES
- Drop the --waitOn flag As of now we wait on the baseUrl that is defined in cypress.json, as that is the URL that the tests are going to run against.
- Drop support for the --appStart flag. As a consumer, you are expected to either use something like concurrently to run the app server and the cypress server in a single process, or run then manually in two separate processes. This is no longer done automatically.
8.0.0-alpha.6 (2021-05-31)
Bug Fixes
8.0.0-alpha.5 (2021-05-31)
Bug Fixes
8.0.0-alpha.4 (2021-05-27)
Bug Fixes
8.0.0-alpha.3 (2021-05-27)
Bug Fixes
8.0.0-alpha.2 (2021-05-27)
Bug Fixes
8.0.0-alpha.1 (2021-05-18)
Bug Fixes
BREAKING CHANGES
-
network-shim: bumps cypress 1 major version, to v7
-
fix(network-shim): filter request and response headers properties
This was planned anyway to keep fixtures stable. But also turned out to be required due to a bug: https://github.com/cypress-io/cypress/issues/16420
-
fix(network-shim): disable auto-login during stub run
-
fix(network-shim): add 'system/info' resource to static resources list
-
feat(network-shim): run tests suite on CI
-
docs(network-shim): add info about the network-shim test suite
-
chore(network-shim): add command to locally run full e2e suite
-
docs(network-shim): add info reg troubleshooting and local full test run
-
chore(cy local): run build command before cypress commands
Co-authored-by: Jan-Gerke Salomon jgs.salomon@gmail.com
7.0.1 (2021-03-10)
Bug Fixes
7.0.0 (2021-02-10)
Code Refactoring
BREAKING CHANGES
- To use the network-shim's functionality the project will need to use the new network shim plugin on top of the existing enableNetworkShim setup. Also, the network shim options (an object with hosts and staticResources) need to be passed to the networkShim plugin, the enableNetworkShim setup doesn't accept any arguments anymore.
6.0.1 (2021-02-10)
Bug Fixes
6.0.0 (2021-02-05)
Code Refactoring
- get find commands: rename to get-/findWithDataTest [BREAKING CHANGE] (3b63762)
BREAKING CHANGES
- get find commands: This removes overwriting the existing get and find
commands. Instead new commands will be provided:
getWIthDataTest
and `findWIthDataTest
5.1.1 (2021-01-28)
Bug Fixes
5.1.0 (2021-01-07)
Features
5.0.3 (2021-01-06)
Bug Fixes
5.0.2 (2021-01-06)
Bug Fixes
5.0.1 (2021-01-06)
Bug Fixes
- commands: add
-W
toyarn add
when in yarn workspaces root (#121) (6c5a369) - commands: adjust generated code changes (#124) (2c6de92)
5.0.0 (2020-12-18)
Code Refactoring
- install cmd: restructure options & improve code maintainability (6b83b9a)
Features
- plugins: create own package (19c0bf8)
BREAKING CHANGES
- install cmd: This commit changes the way this package has to be used as the options have changed completely
4.1.0 (2020-12-16)
Features
- codemods: add codemod for transforming get/find (daca680)
- codemods: add codemod for transforming get/find (#102) (046c50d)
4.0.0 (2020-11-26)
Bug Fixes
- enable auto login: preserve JSESSIONID cookie correctly after api update (402d597)
Code Refactoring
- commands: remove superfluous commands (ab58063)
BREAKING CHANGES
- commands: Removes "stubWithFixture" and "visitWhenStubbed" commands. Usage of native cypress functions is preferred
3.2.0 (2020-11-25)
Features
- auto login: add setup function for enabling autologin (cf4cd78)
3.1.3 (2020-11-19)
Bug Fixes
- run command: make command exit correctly (249c587)
3.1.2 (2020-11-17)
Bug Fixes
- update the login button target (154c1a4)
3.1.1 (2020-11-06)
Bug Fixes
- cut release to complete migration to jira (e6bda2b)
3.1.0 (2020-11-03)
Features
3.0.3 (2020-11-02)
Bug Fixes
3.0.2 (2020-10-30)
Bug Fixes
3.0.1 (2020-10-29)
Bug Fixes
3.0.0 (2020-10-29)
Code Refactoring
BREAKING CHANGES
- Adopting to this change requires manual installation of the @dhis2/cypress-commands package
2.2.2 (2020-10-16)
Bug Fixes
2.2.1 (2020-05-27)
Bug Fixes
2.2.0 (2020-05-07)
Features
2.1.0 (2020-05-01)
Features
- add data-test selector syntax & prompt user for data test prefix (12761a1)
- add datatest functionality to get/find commands (9b3837b)
- prompt consumer for data test prefix (7d7bacd)
2.0.0 (2020-04-02)
Bug Fixes
- set correct entry-point (901f682)
chore
- update node engine to >= 10 (bb45181)
BREAKING CHANGES
- Require Node version 10 or above.
1.0.2 (2020-02-10)
Bug Fixes
- simplify plugins loading (7fcf8d4)
1.0.1 (2020-02-10)
Bug Fixes
- simplify template setup (190e65f)
1.0.0 (2020-02-10)
Bug Fixes
- copy cucumber config (2ff4f92)
Features
- create dhis2 cypress utility lib (c07e3a4)