browser-monkey
Advanced tools
Comparing version 3.0.0-beta.12 to 3.0.0-beta.13
@@ -9,3 +9,3 @@ var selectors = function () { | ||
var input = 'input'; | ||
var text = 'input[type=text]'; | ||
var text = 'input[type=text],input:not([type])'; | ||
var hidden = 'input[type=hidden]'; | ||
@@ -12,0 +12,0 @@ var email = 'input[type=email]'; |
@@ -6,3 +6,3 @@ const selectors = (...sels) => { | ||
const input = 'input' | ||
const text = 'input[type=text]' | ||
const text = 'input[type=text],input:not([type])' | ||
const hidden = 'input[type=hidden]' | ||
@@ -9,0 +9,0 @@ const email = 'input[type=email]' |
{ | ||
"name": "browser-monkey", | ||
"version": "3.0.0-beta.12", | ||
"version": "3.0.0-beta.13", | ||
"description": "reliable dom testing", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -34,2 +34,14 @@ import {DomAssembly} from './assemblies/DomAssembly' | ||
it('can set text fields without explicit type', async () => { | ||
assembly.insertHtml(` | ||
<input class="address"/> | ||
`) | ||
await browser.set({ | ||
'.address': '7 Lola St', | ||
}) | ||
expect(assembly.find('.address').value).to.equal('7 Lola St') | ||
}) | ||
it('can set select fields', async () => { | ||
@@ -36,0 +48,0 @@ assembly.insertHtml(` |
Sorry, the diff of this file is not supported yet
382914
8080