-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kelly Selden
committed
May 5, 2018
1 parent
11e0bc6
commit bae0225
Showing
24 changed files
with
1,461 additions
and
1,500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,35 @@ | ||
import { test } from 'qunit'; | ||
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; | ||
import { click, find, visit } from '@ember/test-helpers'; | ||
import { module, test } from 'qunit'; | ||
import { setupApplicationTest } from 'ember-qunit'; | ||
|
||
moduleForAcceptance('Acceptance | application'); | ||
module('Acceptance | application', function(hooks) { | ||
setupApplicationTest(hooks); | ||
|
||
test('double render failing test', function(assert) { | ||
visit('/double-render'); | ||
test('double render failing test', async function(assert) { | ||
await visit('/double-render'); | ||
|
||
andThen(function() { | ||
assert.equal(find('.computed').text(), 'test val 1'); | ||
}); | ||
assert.equal(find('.computed').textContent, 'test val 1'); | ||
|
||
click('button'); | ||
await click('button'); | ||
|
||
andThen(function() { | ||
assert.equal(find('.computed').text(), 'test val 2'); | ||
}); | ||
assert.equal(find('.computed').textContent, 'test val 2'); | ||
|
||
click('button'); | ||
await click('button'); | ||
|
||
andThen(function() { | ||
assert.equal(find('.computed').text(), 'test val 3'); | ||
assert.equal(find('.computed').textContent, 'test val 3'); | ||
}); | ||
}); | ||
|
||
test('no rerender failing test', function(assert) { | ||
visit('/no-rerender'); | ||
test('no rerender failing test', async function(assert) { | ||
await visit('/no-rerender'); | ||
|
||
andThen(function() { | ||
assert.equal(find('.items').text(), 1); | ||
}); | ||
assert.equal(find('.items').textContent, 1); | ||
|
||
click('button'); | ||
await click('button'); | ||
|
||
andThen(function() { | ||
assert.equal(find('.items').text(), 0); | ||
}); | ||
assert.equal(find('.items').textContent, 0); | ||
|
||
click('button'); | ||
await click('button'); | ||
|
||
andThen(function() { | ||
assert.equal(find('.items').text(), 1); | ||
assert.equal(find('.items').textContent, 1); | ||
}); | ||
}); |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.