Update API routes to target the default tenant #126
@ -1,7 +1,7 @@
|
|||||||
import { test, expect, Page } from '@playwright/test'
|
import { test, expect, Page } from '@playwright/test'
|
||||||
|
|
||||||
const mockGuestsAPI = ({ page }: { page: Page }) => {
|
const mockGuestsAPI = ({ page }: { page: Page }) => {
|
||||||
page.route('*/**/api/guests', async route => {
|
page.route('*/**/api/default/guests', async route => {
|
||||||
const json = [
|
const json = [
|
||||||
{
|
{
|
||||||
"id": "f4a09c28-40ea-4553-90a5-96935a59cac6",
|
"id": "f4a09c28-40ea-4553-90a5-96935a59cac6",
|
||||||
@ -28,7 +28,7 @@ const mockGuestsAPI = ({ page }: { page: Page }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mockGroupsAPI = ({ page }: { page: Page }) => {
|
const mockGroupsAPI = ({ page }: { page: Page }) => {
|
||||||
page.route('*/**/api/groups', async route => {
|
page.route('*/**/api/default/groups', async route => {
|
||||||
const json = [
|
const json = [
|
||||||
{
|
{
|
||||||
"id": "ee44ffb9-1147-4842-a378-9eaeb0f0871a",
|
"id": "ee44ffb9-1147-4842-a378-9eaeb0f0871a",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user