11import { visit } from '@ember/test-helpers' ;
22import { module , test } from 'qunit' ;
33
4+ import { loadFixtures } from '@crates-io/msw/fixtures.js' ;
45import percySnapshot from '@percy/ember' ;
56import a11yAudit from 'ember-a11y-testing/test-support/audit' ;
67
@@ -9,10 +10,10 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
910import axeConfig from '../axe-config' ;
1011
1112module ( '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