Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayman committed Aug 18, 2024
1 parent 1cd48ed commit 0394616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/components/new-signup/input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ module('Integration | Component | new-sign-up/form', function (hooks) {
assert.dom('[data-test-btn="signup"]').hasAnyText();
});

test('button should have text Submit if the current step is username', async function (assert) {
test('button should have text Submit if the current step is lastName', async function (assert) {
assert.expect(2);
this.setProperties({
onClick: function () {
this.currentStep = this.LAST_STEP;
},
currentStep: 'username',
currentStep: 'lastName',
});

await render(hbs`
Expand All @@ -107,13 +107,13 @@ module('Integration | Component | new-sign-up/form', function (hooks) {
assert.dom('[data-test-btn="signup"]').hasText('Submit');
});

test('button should have text Submit if the current step is username and if dev is set to false', async function (assert) {
test('button should have text Submit if the current step is lastName and if dev is set to false', async function (assert) {
assert.expect(2);
this.setProperties({
onClick: function () {
this.currentStep = this.LAST_STEP;
},
currentStep: 'username',
currentStep: 'lastName',
dev: false,
});

Expand Down

0 comments on commit 0394616

Please sign in to comment.