Skip to content

Releases: dhis2/cli-utils-cypress

v8.0.6

28 Oct 10:20
Compare
Choose a tag to compare

8.0.6 (2021-10-28)

Bug Fixes

v8.0.5

27 Oct 14:10
Compare
Choose a tag to compare

8.0.5 (2021-10-27)

Bug Fixes

  • network-shim: fix out-of-bound index of non-deterministic requests (#287) (ea407a9)

v8.0.4

01 Oct 09:56
Compare
Choose a tag to compare

8.0.4 (2021-10-01)

Bug Fixes

  • network shim: add missing "experimentalInteractiveRunEvents" (880c490)

v8.0.3

24 Aug 07:29
Compare
Choose a tag to compare

8.0.3 (2021-08-24)

Bug Fixes

  • network-shim: ensure 304s are dealt with correctly (#262) (c654b9b)

v8.0.2

23 Aug 08:09
Compare
Choose a tag to compare

8.0.2 (2021-08-23)

Bug Fixes

  • network-shim: handle 304s from different scenarios in the same feature (#261) (0242c1e)

v8.0.1

10 Jun 14:43
Compare
Choose a tag to compare

8.0.1 (2021-06-10)

Bug Fixes

  • install cmd: use correct env vars for network shim in install command (#234) (a91da93)

v8.0.0

10 Jun 10:58
Compare
Choose a tag to compare

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

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:
cypress-io/cypress#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 [email protected]

v8.0.0-alpha.9

09 Jun 13:10
Compare
Choose a tag to compare
v8.0.0-alpha.9 Pre-release
Pre-release

8.0.0-alpha.9 (2021-06-09)

chore

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.

v8.0.0-alpha.8

03 Jun 11:56
Compare
Choose a tag to compare
v8.0.0-alpha.8 Pre-release
Pre-release

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.

v8.0.0-alpha.7

02 Jun 09:34
Compare
Choose a tag to compare
v8.0.0-alpha.7 Pre-release
Pre-release

8.0.0-alpha.7 (2021-06-02)

Code Refactoring

  • drop the app-start flag (9674d87)
  • wait for baseUrl to become available (745194f)

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.