File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11import type { Page , Route } from '@playwright/test' ;
22
3- import { backend } from '../../utils/constants' ;
4-
53export const mockCapabilities = ( page : Page , enabled : boolean ) => {
6- return page . route ( `${ backend } /viewer/json/ capabilities?* ` , async ( route : Route ) => {
4+ return page . route ( `** /viewer/capabilities` , async ( route : Route ) => {
75 await route . fulfill ( {
86 status : 200 ,
97 contentType : 'application/json' ,
@@ -17,7 +15,7 @@ export const mockCapabilities = (page: Page, enabled: boolean) => {
1715} ;
1816
1917export const mockNodesWithPile = ( page : Page ) => {
20- return page . route ( `${ backend } /viewer/json/nodes?*` , async ( route : Route ) => {
18+ return page . route ( `** /viewer/json/nodes?*` , async ( route : Route ) => {
2119 await route . fulfill ( {
2220 status : 200 ,
2321 contentType : 'application/json' ,
@@ -43,7 +41,7 @@ export const mockNodesWithPile = (page: Page) => {
4341} ;
4442
4543export const mockStorageGroupsWithPile = ( page : Page ) => {
46- return page . route ( `${ backend } /storage/groups?*` , async ( route : Route ) => {
44+ return page . route ( `** /storage/groups?*` , async ( route : Route ) => {
4745 await route . fulfill ( {
4846 status : 200 ,
4947 contentType : 'application/json' ,
You can’t perform that action at this time.
0 commit comments