Skip to content

Commit

Permalink
test hover shift twice
Browse files Browse the repository at this point in the history
  • Loading branch information
e-hein committed Jun 30, 2020
1 parent 1cada7b commit 33e88c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/in-plain-html-js/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ describe('interactive demo', () => {
it('should *not* show control backspace', () => expect(testElement(id.control.backspace).offsetHeight).toBe(0));
it('should show control delete', () => expect(testElement(id.control.delete).offsetHeight).toBeGreaterThan(0));

describe('twice', () => {
beforeEach(() => emulateKey.mouse.hover(testElement(id.control.shift)));

it('should show control tab', () => expect(testElement(id.control.tab).offsetHeight).toBeGreaterThan(0));
it('should *not* show control shift-tab', () => expect(testElement(id.control.shiftTab).offsetHeight).toBe(0));
it('should show control backspace', () => expect(testElement(id.control.backspace).offsetHeight).toBeGreaterThan(0));
it('should *not* show control delete', () => expect(testElement(id.control.delete).offsetHeight).toBe(0));
});

describe(', focus first input', () => {
let firstInput;

Expand Down

0 comments on commit 33e88c0

Please sign in to comment.