Socket
Socket
Sign inDemoInstall

terra-alert

Package Overview
Dependencies
Maintainers
10
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-alert - npm Package Compare versions

Comparing version 4.45.0 to 4.46.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 4.46.0 - (November 17, 2020)
* Changed
* Update wdio tests to remove deprecated Terra.it helpers
## 4.45.0 - (November 10, 2020)

@@ -7,0 +12,0 @@

12

package.json
{
"name": "terra-alert",
"main": "lib/Alert.js",
"version": "4.45.0",
"version": "4.46.0",
"description": "The Terra Alert component is a notification banner that can be rendered in your application when there is information that you want to bring to the user's attention. The Alert component supports a number of built-in notification types that render with pre-defined colors and icons that help the user understand the severity and meaning of the notification. A custom notification type is also supported that allows your application to customize an alert that may not fit into the pre-defined types.",

@@ -32,7 +32,7 @@ "repository": {

"prop-types": "^15.5.8",
"terra-button": "^3.49.0",
"terra-icon": "^3.37.0",
"terra-responsive-element": "^5.25.0",
"terra-button": "^3.50.0",
"terra-icon": "^3.38.0",
"terra-responsive-element": "^5.26.0",
"terra-theme-context": "^1.0.0",
"terra-toggle": "^3.40.0"
"terra-toggle": "^3.41.0"
},

@@ -52,3 +52,3 @@ "scripts": {

},
"gitHead": "1b981da7df893b44257a6fbffb2cbaccc6714b97"
"gitHead": "0e7146c606856f9b2cba0b1defb1d48181b6c089"
}
Terra.describeViewports('Alert', ['tiny', 'large'], () => {
describe('Default', () => {
before(() => { browser.url('/#/raw/tests/terra-alert/alert/default-alert'); });
Terra.it.validatesElement();
it('displays default Alert', () => {
browser.url('/raw/tests/terra-alert/alert/default-alert');
Terra.validates.element('default');
});
describe('Types', () => {
before(() => { browser.url('/#/raw/tests/terra-alert/alert/alert-type'); });
Terra.it.validatesElement();
});
it('displays types of Alert', () => {
browser.url('/raw/tests/terra-alert/alert/alert-type');
describe('Wrapped Content', () => {
before(() => { browser.url('/#/raw/tests/terra-alert/alert/alert-with-wrapped-content'); });
Terra.it.validatesElement();
Terra.validates.element('types');
});
describe('Responsive', () => {
before(() => { browser.url('/#/raw/tests/terra-alert/alert/responsive-example'); });
Terra.it.validatesElement();
it('displays Alert with Wrapped Content', () => {
browser.url('/raw/tests/terra-alert/alert/alert-with-wrapped-content');
Terra.validates.element('wrapped content');
});
describe('Titles', () => {
before(() => { browser.url('/#/raw/tests/terra-alert/alert/alert-title'); });
Terra.it.validatesElement();
it('displays Responsive Alert', () => {
browser.url('/raw/tests/terra-alert/alert/responsive-example');
Terra.validates.element('responsive');
});
describe('Custom', () => {
before(() => { browser.url('/#/raw/tests/terra-alert/alert/custom-alert'); });
Terra.it.validatesElement();
it('displays Alert with titles', () => {
browser.url('/raw/tests/terra-alert/alert/alert-title');
Terra.validates.element('titles');
});
describe('Action Button', () => {
before(() => {
browser.url('/#/raw/tests/terra-alert/alert/alert-action-button');
});
it('displays custom Alert', () => {
browser.url('/raw/tests/terra-alert/alert/custom-alert');
Terra.it.validatesElement();
Terra.validates.element('custom');
});
it('should be register actions', () => {
expect(browser.getText('#actionAlert')).to.have.string('clicked 0 times');
browser.click('#actionAlert button');
expect(browser.getText('#actionAlert')).to.have.string('clicked 1 times');
});
it('displays Alert with action button', () => {
browser.url('/raw/tests/terra-alert/alert/alert-action-button');
after(() => browser.moveToObject('#root', 0, 700));
Terra.validates.element('action button');
});
describe('Dismissible', () => {
before(() => {
browser.url('/#/raw/tests/terra-alert/alert/alert-dismissible');
it('should register actions', () => {
expect(browser.getText('#actionAlert')).to.have.string('clicked 0 times');
browser.click('#actionAlert button');
expect(browser.getText('#actionAlert')).to.have.string('clicked 1 times');
});
describe('Alert Dismissible', () => {
it('displays dismissible Alert', () => {
browser.url('/raw/tests/terra-alert/alert/alert-dismissible');
Terra.validates.element('default');
});
Terra.it.validatesElement();
it('should dismiss', () => {
browser.click('#dismissibleAlert button');
expect(browser.getText('#dismissed')).to.equal('Alert was dismissed');
Terra.validates.element('dismissed');
});
Terra.it.validatesElement('dismissed');
after(() => browser.moveToObject('#root', 0, 700));
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc