working
This commit is contained in:
parent
c0999370c6
commit
4e1a339432
17 changed files with 393 additions and 91 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { test, expect } from "@playwright/test";
|
||||
import { getTomorrowDateStr } from "./helpers/date";
|
||||
import { API_URL, REGULAR_USER, ADMIN_USER, clearAuth, loginUser } from "./helpers/auth";
|
||||
import { REGULAR_USER, ADMIN_USER, clearAuth, loginUser } from "./helpers/auth";
|
||||
import { getBackendUrl } from "./helpers/backend-url";
|
||||
|
||||
/**
|
||||
* Availability Page E2E Tests
|
||||
|
|
@ -177,7 +178,7 @@ test.describe("Availability API", () => {
|
|||
|
||||
if (authCookie) {
|
||||
const dateStr = getTomorrowDateStr();
|
||||
const response = await request.put(`${API_URL}/api/admin/availability`, {
|
||||
const response = await request.put(`${getBackendUrl()}/api/admin/availability`, {
|
||||
headers: {
|
||||
Cookie: `auth_token=${authCookie.value}`,
|
||||
"Content-Type": "application/json",
|
||||
|
|
@ -203,7 +204,7 @@ test.describe("Availability API", () => {
|
|||
if (regularAuthCookie) {
|
||||
const dateStr = getTomorrowDateStr();
|
||||
const response = await request.get(
|
||||
`${API_URL}/api/admin/availability?from=${dateStr}&to=${dateStr}`,
|
||||
`${getBackendUrl()}/api/admin/availability?from=${dateStr}&to=${dateStr}`,
|
||||
{
|
||||
headers: {
|
||||
Cookie: `auth_token=${regularAuthCookie.value}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue