import { haveValue, html, test } from '../utils'
test.skip('can entangle to getter/setter pairs',
[html`
`],
({ get }) => {
get('input[outer]').should(haveValue('foo'))
get('input[inner]').should(haveValue('foo'))
get('input[inner]').type('bar')
get('input[inner]').should(haveValue('foobar'))
get('input[outer]').should(haveValue('foobar'))
get('input[outer]').type('baz')
get('input[outer]').should(haveValue('foobarbaz'))
get('input[inner]').should(haveValue('foobarbaz'))
}
)
test.skip('can release entanglement',
[html`
`],
({ get }) => {
get('input[outer]').should(haveValue('foo'))
get('input[inner]').should(haveValue('foo'))
get('input[inner]').type('bar')
get('input[inner]').should(haveValue('foobar'))
get('input[outer]').should(haveValue('foobar'))
get('button').click()
get('input[inner]').type('baz')
get('input[inner]').should(haveValue('foobarbaz'))
get('input[outer]').should(haveValue('foobar'))
}
)