Skip to content

Commit bc0c3b1

Browse files
committed
save1
1 parent 33ccd2d commit bc0c3b1

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/frontend/apps/e2e/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PORT=3000
22
BASE_URL=http://localhost:3000
3+
BASE_API_URL=http://localhost:8071/api/v1.0
34
CUSTOM_SIGN_IN=false
45
TEST_INSTANCE_ONLY=false
56
SIGN_IN_EL_TRIGGER=Start Writing

src/frontend/apps/e2e/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PORT=3000
22
BASE_URL=http://localhost:3000
3+
BASE_API_URL=http://localhost:8071/api/v1.0
34
TEST_INSTANCE_ONLY=false
45
CUSTOM_SIGN_IN=false
56
SIGN_IN_EL_TRIGGER=Start Writing

src/frontend/apps/e2e/__tests__/app-impress/doc-create.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test.describe('Doc Create: Not logged', () => {
169169
};
170170

171171
const newDoc = await request.post(
172-
`http://localhost:8071/api/v1.0/documents/create-for-owner/`,
172+
`${process.env.BASE_API_URL}/documents/create-for-owner/`,
173173
{
174174
data,
175175
headers: {

src/frontend/apps/e2e/__tests__/app-impress/utils-common.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,11 @@ export const goToGridDoc = async (
208208
page: Page,
209209
{ nthRow = 1, title }: GoToGridDocOptions = {},
210210
) => {
211-
const header = page.locator('header').first();
212-
await header.locator('h1').getByText('Docs').click();
211+
if (
212+
await page.getByRole('button', { name: 'Back to homepage' }).isVisible()
213+
) {
214+
await page.getByRole('button', { name: 'Back to homepage' }).click();
215+
}
213216

214217
const docsGrid = page.getByTestId('docs-grid');
215218
await expect(docsGrid).toBeVisible();

0 commit comments

Comments
 (0)