@@ -10,8 +10,6 @@ import Toast from "vue-toastification";
1010import { disableMonitoring } from "../../../../test/drivers/vitest/setup" ;
1111
1212describe ( "MaskView tests" , ( ) => {
13- const serviceControlInstanceUrl = window . defaultConfig . service_control_url ;
14-
1513 async function setup ( ) {
1614 const driver = makeDriverForTests ( ) ;
1715
@@ -27,7 +25,7 @@ describe("MaskView tests", () => {
2725
2826 async function renderComponent ( body : string [ ] = [ ] ) {
2927 const driver = await setup ( ) ;
30- driver . mockEndpoint ( `${ serviceControlInstanceUrl } licensing/settings/masks` , { body } ) ;
28+ driver . mockEndpoint ( `${ window . defaultConfig . service_control_url } licensing/settings/masks` , { body } ) ;
3129 useServiceControlUrls ( ) ;
3230 await useServiceControl ( ) ;
3331 const { debug } = render ( MasksView , { global : { plugins : [ Toast ] } } ) ;
@@ -66,7 +64,7 @@ describe("MaskView tests", () => {
6664 const use = userEvent . setup ( ) ;
6765 await use . type ( getTextAreaElement ( ) , "\nthree\nfour\nfive" ) ;
6866
69- driver . mockEndpoint ( `${ serviceControlInstanceUrl } licensing/settings/masks/update` , { body : undefined , method : "post" } ) ;
67+ driver . mockEndpoint ( `${ window . defaultConfig . service_control_url } licensing/settings/masks/update` , { body : undefined , method : "post" } ) ;
7068 await use . click ( screen . getByRole ( "button" , { name : / S a v e / i } ) ) ;
7169
7270 expect ( screen . queryAllByText ( / M a s k s S a v e d / i) . length ) . toBeGreaterThanOrEqual ( 1 ) ;
0 commit comments