Skip to content

Commit 7bba393

Browse files
committed
tests/acceptance/team: Migrate from mirage to @crates-io/msw
1 parent bbc0c1a commit 7bba393

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/acceptance/team-page-test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { visit } from '@ember/test-helpers';
22
import { module, test } from 'qunit';
33

4+
import { loadFixtures } from '@crates-io/msw/fixtures.js';
45
import percySnapshot from '@percy/ember';
56
import a11yAudit from 'ember-a11y-testing/test-support/audit';
67

@@ -9,10 +10,10 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
910
import axeConfig from '../axe-config';
1011

1112
module('Acceptance | team page', function (hooks) {
12-
setupApplicationTest(hooks);
13+
setupApplicationTest(hooks, { msw: true });
1314

1415
test('has team organization display', async function (assert) {
15-
this.server.loadFixtures();
16+
loadFixtures();
1617

1718
await visit('/teams/github:org:thehydroimpulse');
1819

@@ -24,15 +25,15 @@ module('Acceptance | team page', function (hooks) {
2425
});
2526

2627
test('has link to github in team header', async function (assert) {
27-
this.server.loadFixtures();
28+
loadFixtures();
2829

2930
await visit('/teams/github:org:thehydroimpulse');
3031

3132
assert.dom('[data-test-heading] [data-test-github-link]').hasAttribute('href', 'https://github.com/org_test');
3233
});
3334

3435
test('team organization details has github profile icon', async function (assert) {
35-
this.server.loadFixtures();
36+
loadFixtures();
3637

3738
await visit('/teams/github:org:thehydroimpulse');
3839

0 commit comments

Comments
 (0)