@helpscout/cyan
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -59,2 +59,3 @@ "use strict"; | ||
style: getComputedStyle, | ||
id: getId, | ||
tagName: getTagName, | ||
@@ -61,0 +62,0 @@ text: getText, |
@@ -267,2 +267,3 @@ import CyanEvents from './Cyan.event.types'; | ||
* | ||
* @alias id | ||
* @returns {string | null} The id. | ||
@@ -275,2 +276,11 @@ * | ||
/** | ||
* Get the id from the main DOM element. | ||
* | ||
* @returns {string | null} The id. | ||
* | ||
* @example | ||
* cy.get('section').id() | ||
*/ | ||
id(): string | null; | ||
/** | ||
* Get the tagName (lowercase) from the main DOM element. | ||
@@ -296,11 +306,22 @@ * | ||
* | ||
* @alias value | ||
* @returns {string | null} The value. | ||
* | ||
* @example | ||
* cy.get('.hello').getTagName() | ||
* cy.get('.hello').getValue() | ||
*/ | ||
getValue(): string | null; | ||
/** | ||
* Get the value from the main DOM element. Typically used for form elements. | ||
* | ||
* @returns {string | null} The value. | ||
* | ||
* @example | ||
* cy.get('.hello').value() | ||
*/ | ||
value(): string | null; | ||
/** | ||
* Get the text content from the main DOM element. | ||
* | ||
* @alias text | ||
* @returns {string | null} The text content. | ||
@@ -313,2 +334,11 @@ * | ||
/** | ||
* Get the text content from the main DOM element. | ||
* | ||
* @returns {string | null} The text content. | ||
* | ||
* @example | ||
* cy.get('.hello').text() | ||
*/ | ||
text(): string | null; | ||
/** | ||
* Get the children DOM elements from the main DOM element. | ||
@@ -315,0 +345,0 @@ * |
{ | ||
"name": "@helpscout/cyan", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Cypress-like Testing for React + JSDOM", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
122179
3405