save1
This commit is contained in:
@@ -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,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();
|
||||
|
||||
Reference in New Issue
Block a user