File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,15 @@ export function setupApplicationTest(hooks, options) {
10
10
upstreamSetupApplicationTest ( hooks , options ) ;
11
11
setupMirage ( hooks ) ;
12
12
setupSentryMock ( hooks ) ;
13
- setupAppTestBodyClass ( hooks ) ;
13
+ setupAppTestDataAttr ( hooks ) ;
14
14
}
15
15
16
- function setupAppTestBodyClass ( hooks ) {
17
- const ID = 'app-test' ;
18
-
16
+ function setupAppTestDataAttr ( hooks ) {
19
17
hooks . beforeEach ( function ( ) {
20
- this . bodyClass = this . owner . lookup ( 'service:body-class' ) ;
21
- this . bodyClass . register ( ID , [ 'app-test' ] ) ;
18
+ document . documentElement . dataset . appTest = '' ;
22
19
} ) ;
23
20
24
21
hooks . afterEach ( function ( ) {
25
- this . bodyClass . deregister ( ID ) ;
22
+ delete document . documentElement . dataset . appTest ;
26
23
} ) ;
27
24
}
Original file line number Diff line number Diff line change 1
- body . app-test .ember-application {
1
+ [ data- app-test] .ember-application {
2
2
background-color : var (--header-bg-color );
3
3
}
You can’t perform that action at this time.
0 commit comments