terra-props-table
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -7,2 +7,7 @@ Changelog | ||
2.3.0 - (March 30, 2018) | ||
------------------ | ||
### Changed | ||
* Minor version bump | ||
2.2.0 - (March 6, 2018) | ||
@@ -9,0 +14,0 @@ ------------------ |
@@ -12,3 +12,3 @@ # Dependency Information | ||
| react-docgen | ^2.15.0 | -- | A CLI and toolkit to extract information from React components for documentation generation. | | ||
| terra-markdown | ^2.1.0 | ^16.2.0 | terra-markdown | | ||
| terra-markdown | ^2.2.0 | ^16.2.0 | terra-markdown | | ||
@@ -15,0 +15,0 @@ ## peerDependencies |
{ | ||
"name": "terra-props-table", | ||
"main": "lib/PropsTable.js", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "terra-props-table", | ||
@@ -37,3 +37,3 @@ "repository": { | ||
"react-docgen": "^2.15.0", | ||
"terra-markdown": "^2.2.0" | ||
"terra-markdown": "^2.3.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
@@ -6,3 +6,3 @@ // eslint-disable-next-line import/no-extraneous-dependencies | ||
'Displays a props table': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.elementPresent('[class*="markdown-body"]'); | ||
@@ -12,3 +12,3 @@ }, | ||
'Displays props table with default title': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('[class*="markdown-body"] > h2', 'Props'); | ||
@@ -18,3 +18,3 @@ }, | ||
'Displays props table with component title': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/title`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table-with-title`) | ||
.assert.elementPresent('[class*="markdown-body"] > h2', 'Mock Component Props'); | ||
@@ -24,3 +24,3 @@ }, | ||
'Displays a string prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(1) > td:nth-child(1)', 'string') | ||
@@ -31,3 +31,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(1) > td:nth-child(2)', 'string'); | ||
'Displays a number prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(2) > td:nth-child(1)', 'number') | ||
@@ -38,3 +38,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(2) > td:nth-child(2)', 'number'); | ||
'Displays a boolean prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(3) > td:nth-child(1)', 'bool') | ||
@@ -45,3 +45,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(3) > td:nth-child(2)', 'bool'); | ||
'Displays a element prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(4) > td:nth-child(1)', 'element') | ||
@@ -52,3 +52,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(4) > td:nth-child(2)', 'element'); | ||
'Displays a node prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(5) > td:nth-child(1)', 'node') | ||
@@ -59,3 +59,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(5) > td:nth-child(2)', 'node'); | ||
'Displays a array prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(6) > td:nth-child(1)', 'array') | ||
@@ -66,3 +66,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(6) > td:nth-child(2)', 'array'); | ||
'Displays a defualt arrayOf prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(7) > td:nth-child(1)', 'arrayOfDefault') | ||
@@ -73,3 +73,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(7) > td:nth-child(2)', 'array of elements'); | ||
'Displays a arrayOf(shapes) prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(8) > td:nth-child(1)', 'arrayOfShapes') | ||
@@ -80,3 +80,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(8) > td:nth-child(2)', 'array of objects structured like:\n {\n "stringProp": {\n "name": "string",\n "required": false\n }\n} '); | ||
'Displays a oneOfType prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(9) > td:nth-child(1)', 'oneOfType') | ||
@@ -87,3 +87,3 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(9) > td:nth-child(2)', 'string or number or an object structured like:\n {\n "stringProp": {\n "name": "string",\n "required": false\n }\n} '); | ||
'Displays a shape prop correctly': (browser) => { | ||
browser.url(`${browser.launchUrl}/#/tests/props-table-tests/default`) | ||
browser.url(`${browser.launchUrl}/#/raw/tests/props-table/mock-props-table`) | ||
.assert.containsText('#PropsTable > tbody > tr:nth-child(10) > td:nth-child(1)', 'shape') | ||
@@ -90,0 +90,0 @@ .assert.containsText('#PropsTable > tbody > tr:nth-child(10) > td:nth-child(2)', 'an object structured like:\n {\n "stringProp": {\n "name": "string",\n "required": false\n },\n "numberProp": {\n "name": "number",\n "required": false\n }\n} '); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50298
27
755
Updatedterra-markdown@^2.3.0