From 33e88c0cbafbe16b31a0f5e7a276c43d4e9e0d06 Mon Sep 17 00:00:00 2001 From: Emanuel Hein Date: Tue, 30 Jun 2020 17:49:33 +0200 Subject: [PATCH] test hover shift twice --- test/in-plain-html-js/test/index.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/in-plain-html-js/test/index.spec.js b/test/in-plain-html-js/test/index.spec.js index 83ba474..542ab6e 100644 --- a/test/in-plain-html-js/test/index.spec.js +++ b/test/in-plain-html-js/test/index.spec.js @@ -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;