@@ -24,6 +24,14 @@ vi.mock(':ui/Dialog/index.js', () => ({
2424
2525const mockOrigin = 'http://localhost' ;
2626
27+ vi . mock ( ':store/store.js' , ( ) => ( {
28+ store : {
29+ config : {
30+ get : vi . fn ( ) . mockReturnValue ( { metadata : { appName : 'Test App' } } ) ,
31+ } ,
32+ } ,
33+ } ) ) ;
34+
2735describe ( 'PopupManager' , ( ) => {
2836 beforeAll ( ( ) => {
2937 global . window = Object . create ( window ) ;
@@ -87,7 +95,7 @@ describe('PopupManager', () => {
8795 await waitFor ( ( ) => {
8896 expect ( mockPresentItem ) . toHaveBeenCalledWith (
8997 expect . objectContaining ( {
90- title : expect . stringContaining ( ' wants to continue in Base Account') ,
98+ title : 'Test App wants to continue in Base Account',
9199 message : 'This action requires your permission to open a new window.' ,
92100 actionItems : expect . arrayContaining ( [
93101 expect . objectContaining ( {
@@ -117,7 +125,7 @@ describe('PopupManager', () => {
117125 await waitFor ( ( ) => {
118126 expect ( mockPresentItem ) . toHaveBeenCalledWith (
119127 expect . objectContaining ( {
120- title : expect . stringContaining ( ' wants to continue in Base Account') ,
128+ title : 'Test App wants to continue in Base Account',
121129 message : 'This action requires your permission to open a new window.' ,
122130 actionItems : expect . arrayContaining ( [
123131 expect . objectContaining ( {
0 commit comments