Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Added 'keyboardEventInit' to test utility #386

Merged
merged 4 commits into from
Mar 30, 2018

Conversation

Blackbaud-SteveBrush
Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush commented Mar 30, 2018

Allows firing of keyboard events.
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent

SkyAppTestUtility.fireDomEvent(autocompleteElement, 'keydown', {
  bubbles: true,
  keyboardEventInit: { key: 'Enter' }
});

FYI: I replaced all instances of TestUtility from SKY UX's spec files with success:
blackbaud/skyux2#1598

@codecov-io
Copy link

codecov-io commented Mar 30, 2018

Codecov Report

Merging #386 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   99.25%   99.25%           
=======================================
  Files          71       71           
  Lines        1750     1750           
  Branches      284      284           
=======================================
  Hits         1737     1737           
  Misses         13       13
Flag Coverage Δ
#builder 100% <ø> (ø) ⬆️
#runtime 94.8% <ø> (ø) ⬆️
#srcapp 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80b392b...387ff0c. Read the comment docs.

@Blackbaud-SteveBrush Blackbaud-SteveBrush changed the title Added 'key' to test utility Added 'keyboardEventInit' to test utility Mar 30, 2018
@Blackbaud-BobbyEarl Blackbaud-BobbyEarl merged commit 148ff78 into master Mar 30, 2018
@Blackbaud-BobbyEarl Blackbaud-BobbyEarl deleted the test-utility-add-key branch March 30, 2018 18:12
Blackbaud-MikitaYankouski pushed a commit to Blackbaud-MikitaYankouski/skyux-builder that referenced this pull request May 3, 2019
* Added 'key' to test utility

* Updated to accommodate keyboard events
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants