diff --git a/docs-app/tests/acceptance/album/visual-regression-test.ts b/docs-app/tests/acceptance/album/visual-regression-test.ts index b94dc092..1f0dc844 100644 --- a/docs-app/tests/acceptance/album/visual-regression-test.ts +++ b/docs-app/tests/acceptance/album/visual-regression-test.ts @@ -101,16 +101,17 @@ 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]') - .exists("We see the current track's lyrics."); + .doesNotExist("We don't see the current track's lyrics."); await takeSnapshot(assert); }); diff --git a/docs-app/tests/acceptance/dashboard/visual-regression-test.ts b/docs-app/tests/acceptance/dashboard/visual-regression-test.ts index cd4f75d1..09127050 100644 --- a/docs-app/tests/acceptance/dashboard/visual-regression-test.ts +++ b/docs-app/tests/acceptance/dashboard/visual-regression-test.ts @@ -25,17 +25,11 @@ 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"]') - .hasText( - 'Relevant years: 1973 - 1982', - 'We see the relevant years in correct format.', - ); + .hasText('1973 - 1982', 'We see the relevant years in correct format.'); // Widget 3 assert @@ -415,17 +409,11 @@ 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"]') - .hasText( - 'Relevant years: 1973 - 1982', - 'We see the relevant years in correct format.', - ); + .hasText('1973 - 1982', 'We see the relevant years in correct format.'); // Widget 3 assert