From 7015b2c67a55889206a4f9081452a78fa1ecceaa Mon Sep 17 00:00:00 2001 From: rldhont Date: Mon, 14 Oct 2024 17:46:49 +0200 Subject: [PATCH] Tests e2e webdav: relative path --- tests/end2end/playwright/webdav-upload.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/end2end/playwright/webdav-upload.spec.js b/tests/end2end/playwright/webdav-upload.spec.js index c0a7cc71e3..dfff97b7db 100644 --- a/tests/end2end/playwright/webdav-upload.spec.js +++ b/tests/end2end/playwright/webdav-upload.spec.js @@ -1,4 +1,5 @@ // @ts-check +import * as path from 'path'; import { test, expect } from '@playwright/test'; import { gotoMap } from './globals'; @@ -18,7 +19,7 @@ test.describe('WebDAV Server', () => { await page.locator('#jforms_view_edition_liz_future_action').selectOption("edit"); - await page.locator('#jforms_view_edition_remote_path').setInputFiles("./playwright/test_upload_file/test_upload_attribute_table.txt"); + await page.locator('#jforms_view_edition_remote_path').setInputFiles(path.join(__dirname, "test_upload_file/test_upload_attribute_table.txt")); // submit the form await page.locator('#jforms_view_edition__submit_submit').click();