Skip to content

Releases: helpscout/cyan

v0.12.1

21 Jun 13:59
Compare
Choose a tag to compare

Removes package-lock.json

  • Attempt to remove package-lock.json d32dcfd

v0.12.0...v0.12.1

v0.12.0

19 Jun 15:30
Compare
Choose a tag to compare

Add findByCy method

This update adds a new method, findByCy. After the initial get or
getByCy, this method can be used to (easily) find DOM selectors that
match a specific data-cy query.

findByCy

Function(selector: string): Cyan instance

Get descendent DOM elements that match a specific data-cy selector.

Parameters

  • selector {string} A selector used for descendent matching.

Example

cy.get('ul').findByCy('Item')

Resolves: #15


  • Add findByCy method (#16) 998eb8e
  • Update underscore.string and remarkable 45993ae
  • Update website package.json for security 9b86990
  • Update dependencies for security 9282d77

v0.11.3...v0.12.0

v0.11.3

22 May 15:46
Compare
Choose a tag to compare

Typing: Add length type to Cyan class 35673b8

v0.11.2...v0.11.3

v0.11.2

22 May 15:20
Compare
Choose a tag to compare

Inspect: Replace async/await with Promise

This update replaces the async/await implementation within Inspect with
regular a regular Promise implementation. The reason is to allow for
the compiled dist files to integrate smoother into varying set ups,
by-passing any babel runtime based transformers


  • Inspect: Replace async/await with Promise 7d7d6a4

v0.11.1...v0.11.2

v0.11.1

17 May 19:40
Compare
Choose a tag to compare

Type: Ensures that it triggers a change event

v0.11.0

17 May 19:40
Compare
Choose a tag to compare

Debug: Add debugByCy

This update adds a new debugByCy method. It runs the cy.debug() print
method, but scopes the HTML based on a matching data-cy selector, similar
to cy.getByCy.

v0.10.1

15 May 16:10
Compare
Choose a tag to compare

Inspect: Fix compiling of async functions

This update fixes the (TypeScript) compiling of the async functions with
Inspect for library consumption.

Typing has also been improved for cy

Fixes: #11

v0.10.0

15 May 13:50
Compare
Choose a tag to compare

Avoid this version. Issues with Babel

Reported: #11

Inspect: New method to preview a snapshot of rendered HTML in browser

This update adds a new (experimental) method to Cyan called inspect.

It takes cy.debug() to a whole... new... level. Rendering the (snapshot) HTML in a new browser window, along with any rendered styles.

When used with async/await, it will actually pause your Jest test run, until you close the browser tab.

Demo in this screencast:

https://www.loom.com/share/9dadfd8641ec4801b4b70352e4ff4a3c

To use it, just add cy.inspect() to any part of your test, just like cy.debug().

v0.9.2

09 May 17:23
Compare
Choose a tag to compare

setupTests: Add mock IntersectionObserver

This update adds a mock implementation of IntersectionObserver.
The IntersectionObserver methods just return null.

Resolves: #8


  • setupTests: Add mock IntersectionObserver (#9) e2141e1

v0.9.1...v0.9.2

v0.9.1

02 May 17:47
Compare
Choose a tag to compare
  • Types: Fix Cyan event methods to ensure eventProps is optional d8a15a1

v0.9.0...v0.9.1