New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-semantic-test-helpers

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-semantic-test-helpers

The default blueprint for ember-cli addons.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by21.43%
Maintainers
1
Weekly downloads
 
Created
Source

Ember-semantic-test-helpers

Exposes semantic helpers based on https://github.com/emberjs/rfcs/pull/327 rfc

currently supports

Definitions

The perceivable text of a link, button, or other element may be found in any/all of the following locations if-and-only-if the element is perceivable:

  • Its innerText property
  • Its aria-label attribute
  • The perceivable text of the element identified by its aria-labelledby attribute

The perceivable label of a perceivable form control may be found in any/all of the following locations:

  • Its aria-label attribute
  • The perceivable text of its label
  • The perceivable text of the element identified by its aria-labelledby attribute A link is one of the following:

if aria-labelledby is present it aria-label will not be perceivable to screen readers and there for not to this addon.

https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby

  • a

A button is one of the following:

  • button

An input is one of the following:

  • input
  • textarea
  • select

A switch is one of the following:

currently does not support checkboxes

Installation

ember install my-addon

Usage

import { click, fillIn, select, toggle } from 'ember-semantic-test-helpers/test-support';
test('Logging in', async function(assert) {
  await visit('/login');
  await fillIn('Email', 'alice@example.com');
  await fillIn('Password', 'topsecret');
  await select('Some lable targeting a select', 123)
  await toggle('keep me logged in', true)
  await click('Log in');
});

Caveats

  • selecting an option is currently based on the value this will change to the label.
  • currently does not support checkboxes
  • does use a little bit of jquery

Contributing

Installation

  • git clone <repository-url>
  • cd my-addon
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 20 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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