Skip to content

Commit

Permalink
Fix tests on firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Perez committed Mar 9, 2016
1 parent c537da3 commit 542262d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/unit/components/rf-form_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ describe('rf-form', () => {
expect(form.className).to.eq('custom-class')
})

it('should render the inputs', () => {
it('should render the label', () => {
const label = document.querySelector('label[for="hello_username"]')
expect(label).not.to.be.null
expect(label.innerText).to.eq('Username')
expect(label.innerText || label.textContent).to.eq('Username')
})

it('should render the inputs', () => {
it('should render the input', () => {
const input = document.querySelector('input[name="hello_username"]')
expect(input).not.to.be.null
if (input.placeholder) {
expect(input.placeholder).to.eq('Username')
}
expect(input.placeholder).to.eq('Username')
expect(input.value).to.eq('world')
})

Expand Down

0 comments on commit 542262d

Please sign in to comment.