Skip to content

0.3.1

Latest

Choose a tag to compare

@erkamyaman erkamyaman released this 02 Dec 16:03
v0.3.1
339a2bc

What's new

Clearer errors when a case or a step is wrong, and one security fix. Thanks to @abedinm, @RajGahoi and @badrisatyam1-ctrl, who sent every change in this release.

  • Security: a goto path with a control character (a tab, a line break or anything below U+0020) is refused when the case is read, because the URL parser drops those and "/\t/evil.com" would load another host. A goto whose URL leaves the origin of --url now throws as well (#56 by @abedinm).
  • A step on a disabled, hidden or covered element says so (the target is disabled, the target is not visible, the target is covered by another element) instead of Timeout 5000ms exceeded, and a select of a disabled option fails at once (#60 by @abedinm).
  • A refused target says what is wrong with it: an unknown key, a missing role, an empty name, an index below 1, or a problem inside within (#49 by @RajGahoi, also proposed in #51 by @badrisatyam1-ctrl).
  • A target that matches more than one element lists the names found and says to add a name, an index or a within target (#57 by @abedinm).
  • Cases are checked harder when they are read: a step key its action does not take (#55 by @badrisatyam1-ctrl), a press key Playwright does not know (#59 by @abedinm), a case folder without case.json and a loose .json file in a suite folder (#54 by @abedinm).
  • replay and gate name the recording file that is not valid JSON, without printing its text (#50 by @RajGahoi, with the typed lock read from #52 by @badrisatyam1-ctrl).
  • The noise entry errors and the reference mention "keep": false (#61 by @abedinm), and llms.txt and the reference list the options replay and gate take (#58 by @abedinm).

The full list is in CHANGELOG.md.

Install

npm i -D angular-anything

Full changes: v0.3.0...v0.3.1