You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/select-props/_config.js

16 lines
403 B

export default {
test ( assert, component, target, window ) {
const selects = document.querySelectorAll( 'select' );
const event1 = new window.Event( 'change' );
selects[0].value = 'b';
selects[0].dispatchEvent(event1);
const event2 = new window.Event( 'change' );
selects[1].value = 'b';
selects[1].dispatchEvent(event2);
assert.deepEqual( component.get( 'log' ), [ 1, 2 ] );
}
};