Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskh3 committed Oct 23, 2024
1 parent 2417931 commit 0ff4501
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tests/integration/components/subscribe-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,29 +88,4 @@ module('Integration | Component | subscribe', function (hooks) {
'User should be subscribed after form submission',
);
});

test('subscribe form prevents submission with invalid email', async function (assert) {
this.set('email', '');
this.set('phone', '1234567890');
this.set('isSubscribed', false);

await render(hbs`
<form {{on "submit" this.onSubmit}} data-test-subscribe-form>
<label for="email" data-test-email-label>Email:</label>
<input type="email" value={{this.email}} data-test-email-input />
<input type="tel" value={{this.phone}} data-test-phone-input />
<label for="phone" data-test-email-label>Phone:</label>
<button type="submit" data-test-submit-button>Subscribe</button>
</form>
`);

assert
.dom('[data-test-submit-button]')
.isDisabled('Submit button is disabled with an empty email');

await fillIn('[data-test-email-input]', 'invalidemail');
assert
.dom('[data-test-submit-button]')
.isDisabled('Submit button is disabled with an invalid email');
});
});

0 comments on commit 0ff4501

Please sign in to comment.