Commit bb95e93 1 parent ef9da08 commit bb95e93 Copy full SHA for bb95e93
File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { Nav } from './Nav';
5
5
import { testDataStates } from '../shared/js/ui/views/tests/states-with-fixtures' ;
6
6
import { mockBrowserApis } from '../shared/js/browser/utils/communication-mocks.mjs' ;
7
7
import { Extension } from './Extension' ;
8
+ import toggleReportScreen from '../schema/__fixtures__/toggle-report-screen.json' ;
8
9
9
10
export class DashboardPage {
10
11
connectInfoLink = ( ) => this . page . locator ( '[aria-label="View Connection Information"]' ) ;
@@ -313,9 +314,9 @@ export class DashboardPage {
313
314
const messages = { } ;
314
315
messages . getBurnOptions = initial . toBurnOptions ( ) ;
315
316
messages . getPrivacyDashboardData = initial . toExtensionDashboardData ( ) ;
316
- // eslint-disable-next-line @typescript-eslint/no-require-imports
317
- messages . getToggleReportOptions = require ( '../schema/__fixtures__/toggle-report-screen.json' ) ;
318
- messages . getBreakageFormOptions = require ( '../schema/__fixtures__/toggle-report-screen.json' ) ;
317
+
318
+ messages . getToggleReportOptions = toggleReportScreen ;
319
+ messages . getBreakageFormOptions = toggleReportScreen ;
319
320
320
321
await page . addInitScript ( mockBrowserApis , { messages } ) ;
321
322
Original file line number Diff line number Diff line change @@ -352,7 +352,6 @@ export function getToggleReportOptions() {
352
352
return request ( 'getToggleReportOptions' ) ;
353
353
}
354
354
355
-
356
355
/**
357
356
* @category Dashboard -> Extension Messages
358
357
* @return {Promise<import('../../../schema/__generated__/schema.types').ToggleReportScreen> }
Original file line number Diff line number Diff line change @@ -435,7 +435,6 @@ export async function installDebuggerMocks(platform) {
435
435
messages . getPrivacyDashboardData = mock . toExtensionDashboardData ( ) ;
436
436
messages . getToggleReportOptions = toggleReportScreen ;
437
437
messages . getBreakageFormOptions = toggleReportScreen ;
438
-
439
438
}
440
439
if ( platform . name === 'windows' ) {
441
440
messages . windowsViewModel = mock . toWindowsViewModel ( ) ;
You can’t perform that action at this time.
0 commit comments