Skip to content

Commit

Permalink
The final type down
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed May 30, 2019
1 parent b711379 commit e9b29aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/percy-agent-client/dom.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('DOM -', () => {
})

it('serializes into the DOM clone', () => {
const serializedCSSOM = dom.clonedDOM.querySelectorAll('[data-percy-cssom-serialized]')
const serializedCSSOM = dom.clonedDOM.querySelectorAll('[data-percy-cssom-serialized]') as HTMLElement[]

expect(serializedCSSOM.length).to.equal(1)
expect(serializedCSSOM[0].innerText).to.equal('.box { height: 500px; width: 500px; background-color: green; }')
Expand Down Expand Up @@ -223,7 +223,7 @@ describe('DOM -', () => {
const originalDOMInput = document.querySelector('#name') as HTMLElement

expect(originalDOMInput.getAttribute('value')).to.equal(null)
expect(dom.clonedDOM.querySelector('#name').attributes.value.value).to.equal('Bob Boberson')
expect(dom.clonedDOM.querySelector('#name').getAttribute('value')).to.equal('Bob Boberson')
})
})

Expand All @@ -250,7 +250,7 @@ describe('DOM -', () => {
})

it('serializes the CSSOM', () => {
const serializedCSSOM = dom.clonedDOM.querySelectorAll('[data-percy-cssom-serialized]')
const serializedCSSOM = dom.clonedDOM.querySelectorAll('[data-percy-cssom-serialized]') as HTMLElement[]

expect(serializedCSSOM.length).to.equal(1)
expect(serializedCSSOM[0].innerText).to.equal('.box { height: 500px; width: 500px; background-color: green; }')
Expand Down

0 comments on commit e9b29aa

Please sign in to comment.