terra-section-header
Advanced tools
Comparing version 2.48.0 to 2.49.0
@@ -5,2 +5,9 @@ # Changelog | ||
## 2.49.0 - (April 6, 2021) | ||
* Changed | ||
* Upgrade tests to terra-functional-testing and WebDriverIO v6 | ||
* Removed unnecessary `wdio.conf.js` file | ||
* Updated Jest command | ||
## 2.48.0 - (February 2, 2021) | ||
@@ -7,0 +14,0 @@ |
@@ -60,3 +60,3 @@ "use strict"; | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
@@ -63,0 +63,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } |
{ | ||
"name": "terra-section-header", | ||
"main": "lib/SectionHeader.js", | ||
"version": "2.48.0", | ||
"version": "2.49.0", | ||
"description": "Section Header component that contains text and can be optionally interacted with.", | ||
@@ -32,4 +32,4 @@ "repository": { | ||
"prop-types": "^15.5.8", | ||
"terra-arrange": "^3.43.0", | ||
"terra-mixins": "^1.39.0", | ||
"terra-arrange": "^3.44.0", | ||
"terra-mixins": "^1.40.0", | ||
"terra-theme-context": "^1.0.0" | ||
@@ -44,9 +44,9 @@ }, | ||
"test": "npm run lint && npm run jest && npm run wdio", | ||
"jest": "jest --config ../../jestconfig.js", | ||
"wdio-default": "cd ../.. && npx wdio", | ||
"wdio-lowlight": "cd ../.. && THEME=clinical-lowlight-theme npx wdio", | ||
"wdio-fusion": "cd ../.. && THEME=orion-fusion-theme npx wdio", | ||
"jest": "jest --config ../../jest.config.js", | ||
"wdio-default": "cd ../.. && terra wdio", | ||
"wdio-lowlight": "cd ../.. && terra wdio --themes clinical-lowlight-theme", | ||
"wdio-fusion": "cd ../.. && terra wdio --themes orion-fusion-theme", | ||
"wdio": "npm run wdio-default && npm run wdio-lowlight && npm run wdio-fusion" | ||
}, | ||
"gitHead": "f34a76024b33d4b2f25492c5983f3b73a27c107e" | ||
"gitHead": "b6ddb01d67dc1ecbe6fd0eba0ddc8f46b7eb3d61" | ||
} |
@@ -11,3 +11,3 @@ Terra.describeViewports('SectionHeader', ['huge'], () => { | ||
Terra.validates.element('long title'); | ||
Terra.validates.element('default long title'); | ||
}); | ||
@@ -18,27 +18,27 @@ | ||
browser.url('/raw/tests/terra-section-header/section-header/long-title-accordion-section-header'); | ||
browser.moveToObject('#root', 0, 700); // move cursor to remove focus styles | ||
$('#root').moveTo({ xOffset: 0, yOffset: 700 }); // move cursor to remove focus styles | ||
}); | ||
it('should display long title accordion Section Header', () => { | ||
Terra.validates.element('default'); | ||
Terra.validates.element('long title accordion default'); | ||
}); | ||
it('should display long title accordion Section Header with hover', () => { | ||
browser.moveToObject('.accordionContent'); | ||
$('.accordionContent').moveTo(); | ||
Terra.validates.element('hover'); | ||
Terra.validates.element('long title accordion hover'); | ||
}); | ||
it('should display keyboard focused long title accordion Section Header', () => { | ||
browser.moveToObject('#root', 0, 700); // move cursor to remove focus styles | ||
$('#root').moveTo({ xOffset: 0, yOffset: 700 }); // move cursor to remove focus styles | ||
browser.keys('Tab'); | ||
Terra.validates.element('keyboard focus'); | ||
Terra.validates.element('long title accordion keyboard focus'); | ||
}); | ||
it('should display active long title accordion Section Header', () => { | ||
browser.moveToObject('.accordionContent'); | ||
$('.accordionContent').moveTo(); | ||
browser.buttonDown(); | ||
Terra.validates.element('active'); | ||
Terra.validates.element('long title accordion active'); | ||
@@ -51,3 +51,3 @@ browser.buttonUp(); | ||
browser.url('/raw/tests/terra-section-header/section-header/closed-section-header'); | ||
browser.moveToObject('#root', 0, 700); // move cursor to remove focus styles | ||
$('#root').moveTo({ xOffset: 0, yOffset: 700 }); // move cursor to remove focus styles | ||
@@ -59,3 +59,3 @@ Terra.validates.element('closed'); | ||
browser.url('/raw/tests/terra-section-header/section-header/open-section-header'); | ||
browser.moveToObject('#root', 0, 700); // move cursor to remove focus styles | ||
$('#root').moveTo({ xOffset: 0, yOffset: 700 }); // move cursor to remove focus styles | ||
@@ -67,3 +67,3 @@ Terra.validates.element('open'); | ||
browser.url('/raw/tests/terra-section-header/section-header/on-click-section-header'); | ||
browser.moveToObject('#root', 0, 700); // move cursor to remove focus styles | ||
$('#root').moveTo({ xOffset: 0, yOffset: 700 }); // move cursor to remove focus styles | ||
@@ -83,21 +83,21 @@ Terra.validates.element('onClick'); | ||
it('should display hovered interactable transparent Section Header', () => { | ||
browser.moveToObject('[data-id="section-header"]'); | ||
$('[data-id="section-header"]').moveTo(); | ||
Terra.validates.element('hover'); | ||
Terra.validates.element('interactable transparent hover'); | ||
}); | ||
it('should display keyboard focused interactable transparent Section Header', () => { | ||
browser.moveToObject('#root', 0, 700); // move cursor to remove focus styles | ||
$('#root').moveTo({ xOffset: 0, yOffset: 700 }); // move cursor to remove focus styles | ||
browser.keys('Tab'); | ||
Terra.validates.element('keyboard focus'); | ||
Terra.validates.element('interactable transparent keyboard focus'); | ||
}); | ||
it('should display active interactable transparent Section Header', () => { | ||
browser.moveToObject('[data-id="section-header"]'); | ||
$('[data-id="section-header"]').moveTo(); | ||
browser.buttonDown(); | ||
Terra.validates.element('active'); | ||
Terra.validates.element('interactable transparent active'); | ||
}); | ||
}); | ||
}); |
112965
55
945
Updatedterra-arrange@^3.44.0
Updatedterra-mixins@^1.40.0