Skip to content

Conversation

@AliLozano
Copy link

No description provided.

@AliLozano
Copy link
Author

Is test ok?, it should check if default value is cleaned, or not?.

test('Test Cloned Form SELECTs Without Blank OPTION Are Not Cleared', function (assert) {
    assert.equal($('#stacked-form .dynamic-form').size(), 1, 'One default form present.');
    assert.equal($('#stacked-form .dynamic-form:first select').val(), 'Email', 'Default SELECT element has value "Email".');
    $('#stacked-form .add-row').trigger('click');
    assert.equal($('#stacked-form .dynamic-form').size(), 2, 'Cloned form added.');
    assert.equal($('#stacked-form .dynamic-form:last select').val(), 'Email', 'Cloned SELECT element still has value "Email".');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant