Skip to content

Commit

Permalink
chore: Updated assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Aug 29, 2024
1 parent f7897f9 commit 89b9b8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 7 additions & 6 deletions docs-app/tests/acceptance/album/visual-regression-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ module('Acceptance | album', function (hooks) {

test('@w3 @h2 Visual snapshot', async function (assert) {
assert
.dom('[data-test-table="Tracks"]')
.exists('We see the album tracks in a table.');

assert
.dom('[data-test-table="Tracks"] [data-test-row]')
.exists({ count: 11 }, 'We see 11 tracks.');
.dom('[data-test-list="Tracks"]')
.exists('We see the album tracks in a list.')
.hasAttribute(
'data-css-grid',
'4 x 3',
'We see 11 tracks in a 4 x 3 grid.',
);

assert
.dom('[data-test-track-lyrics]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ module('Acceptance | dashboard', function (hooks) {

assert
.dom('[data-test-widget="2"] [data-test-field="Annual Revenue"]')
.hasText(
'Annual revenue: $2.3 billion',
'We see the annual revenue in correct format.',
);
.hasText('$2.3 billion', 'We see the annual revenue in correct format.');

assert
.dom('[data-test-widget="2"] [data-test-field="Relevant Years"]')
Expand Down

0 comments on commit 89b9b8f

Please sign in to comment.