diff --git a/.gitignore b/.gitignore index 157f628..cde6275 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .DS_Store /dist/ docs-dist/ +.exrc diff --git a/test/enterTextSpec.ts b/test/enterTextSpec.ts index 35b3c9d..6345b92 100644 --- a/test/enterTextSpec.ts +++ b/test/enterTextSpec.ts @@ -1,12 +1,5 @@ import {expect} from 'chai' import {DomAssembly} from './assemblies/DomAssembly' -import retry from '../lib/retry' - -async function wait(ms): Promise { - return new Promise((resolve, reject) => { - setTimeout(resolve, ms) - }) -} describe('enterText', function () { let assembly @@ -36,9 +29,7 @@ describe('enterText', function () { }) await browser.enterText('.element', ['the text', '{Enter}']) - await retry(() => { - expect(formSubmitted).to.eq(true) - }) + expect(formSubmitted).to.eq(true) }) it('does not submit form on {Enter} if input catches and cancells the "keypress" event', async function() { @@ -58,8 +49,9 @@ describe('enterText', function () { }) await browser.enterText('.element', ['the text', '{Enter}']) - await wait(100) expect(formSubmitted).to.eq(false) }) + + // TODO what if they really want to type {Enter}? })