This commit is contained in:
Anthony LC
2026-03-26 17:23:42 +01:00
parent 33ccd2df6b
commit bc0c3b1e94
4 changed files with 8 additions and 3 deletions
+1
View File
@@ -1,5 +1,6 @@
PORT=3000
BASE_URL=http://localhost:3000
BASE_API_URL=http://localhost:8071/api/v1.0
CUSTOM_SIGN_IN=false
TEST_INSTANCE_ONLY=false
SIGN_IN_EL_TRIGGER=Start Writing
+1
View File
@@ -1,5 +1,6 @@
PORT=3000
BASE_URL=http://localhost:3000
BASE_API_URL=http://localhost:8071/api/v1.0
TEST_INSTANCE_ONLY=false
CUSTOM_SIGN_IN=false
SIGN_IN_EL_TRIGGER=Start Writing
@@ -169,7 +169,7 @@ test.describe('Doc Create: Not logged', () => {
};
const newDoc = await request.post(
`http://localhost:8071/api/v1.0/documents/create-for-owner/`,
`${process.env.BASE_API_URL}/documents/create-for-owner/`,
{
data,
headers: {
@@ -208,8 +208,11 @@ export const goToGridDoc = async (
page: Page,
{ nthRow = 1, title }: GoToGridDocOptions = {},
) => {
const header = page.locator('header').first();
await header.locator('h1').getByText('Docs').click();
if (
await page.getByRole('button', { name: 'Back to homepage' }).isVisible()
) {
await page.getByRole('button', { name: 'Back to homepage' }).click();
}
const docsGrid = page.getByTestId('docs-grid');
await expect(docsGrid).toBeVisible();