mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
chore: implemented feedback
This commit is contained in:
@ -1,45 +0,0 @@
|
||||
# [[E2E Tests]]
|
||||
E2E_TEST_SIGNER_NAME="Test Signer"
|
||||
E2E_TEST_SIGNER_EMAIL="testsigner@mail.com"
|
||||
E2E_TEST_SIGNING_SUBJECT="Test subject"
|
||||
E2E_TEST_SIGNING_MESSAGE="Test message"
|
||||
# User for the "auth.setup.ts" file and the authenticated tests
|
||||
E2E_TEST_AUTHENTICATE_USERNAME="New user"
|
||||
E2E_TEST_AUTHENTICATE_USER_EMAIL="mytestnewuser@mail.com"
|
||||
E2E_TEST_AUTHENTICATE_USER_PASSWORD="new_test_password"
|
||||
# User for the *.unauthenticated.ts files
|
||||
E2E_TEST_USERNAME="Test"
|
||||
E2E_TEST_USER_EMAIL="mytestuser@mail.com"
|
||||
E2E_TEST_USER_PASSWORD="test_password"
|
||||
|
||||
# [[SMTP]]
|
||||
# OPTIONAL: Defines the transport to use for sending emails. Available options: smtp-auth (default) | smtp-api | mailchannels
|
||||
NEXT_PRIVATE_SMTP_TRANSPORT="smtp-auth"
|
||||
# OPTIONAL: Defines the host to use for sending emails.
|
||||
NEXT_PRIVATE_SMTP_HOST="127.0.0.1"
|
||||
# OPTIONAL: Defines the port to use for sending emails.
|
||||
NEXT_PRIVATE_SMTP_PORT=2500
|
||||
# OPTIONAL: Defines the username to use with the SMTP server.
|
||||
NEXT_PRIVATE_SMTP_USERNAME="documenso"
|
||||
# OPTIONAL: Defines the password to use with the SMTP server.
|
||||
NEXT_PRIVATE_SMTP_PASSWORD="password"
|
||||
# OPTIONAL: Defines the API key user to use with the SMTP server.
|
||||
NEXT_PRIVATE_SMTP_APIKEY_USER=
|
||||
# OPTIONAL: Defines the API key to use with the SMTP server.
|
||||
NEXT_PRIVATE_SMTP_APIKEY=
|
||||
# OPTIONAL: Defines whether to force the use of TLS.
|
||||
NEXT_PRIVATE_SMTP_SECURE=
|
||||
# REQUIRED: Defines the sender name to use for the from address.
|
||||
NEXT_PRIVATE_SMTP_FROM_NAME="No Reply @ Documenso"
|
||||
# REQUIRED: Defines the email address to use as the from address.
|
||||
NEXT_PRIVATE_SMTP_FROM_ADDRESS="noreply@documenso.com"
|
||||
# OPTIONAL: The API key to use for the MailChannels proxy endpoint.
|
||||
NEXT_PRIVATE_MAILCHANNELS_API_KEY=
|
||||
# OPTIONAL: The endpoint to use for the MailChannels API if using a proxy.
|
||||
NEXT_PRIVATE_MAILCHANNELS_ENDPOINT=
|
||||
# OPTIONAL: The domain to use for DKIM signing.
|
||||
NEXT_PRIVATE_MAILCHANNELS_DKIM_DOMAIN=
|
||||
# OPTIONAL: The selector to use for DKIM signing.
|
||||
NEXT_PRIVATE_MAILCHANNELS_DKIM_SELECTOR=
|
||||
# OPTIONAL: The private key to use for DKIM signing.
|
||||
NEXT_PRIVATE_MAILCHANNELS_DKIM_PRIVATE_KEY=
|
||||
@ -8,8 +8,8 @@
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"dev:test": "playwright test",
|
||||
"e2e:test": "start-server-and-test \"npm run start\" http://localhost:3000 \"playwright test\"",
|
||||
"test:dev": "playwright test",
|
||||
"test:e2e": "start-server-and-test \"npm run start\" http://localhost:3000 \"playwright test\"",
|
||||
"clean": "rimraf .next && rimraf node_modules",
|
||||
"copy:pdfjs": "node ../../scripts/copy-pdfjs.cjs"
|
||||
},
|
||||
|
||||
@ -10,7 +10,7 @@ setup('authenticate', async ({ page }: { page: Page }) => {
|
||||
await page.goto('/signup');
|
||||
await page.getByLabel('Name').fill(username);
|
||||
await page.getByLabel('Email').fill(email);
|
||||
await page.getByLabel('Password').fill(password);
|
||||
await page.getByLabel('Password', { exact: true }).fill(password);
|
||||
|
||||
const canvas = page.locator('canvas');
|
||||
const box = await canvas.boundingBox();
|
||||
@ -26,7 +26,7 @@ setup('authenticate', async ({ page }: { page: Page }) => {
|
||||
|
||||
await page.goto('/');
|
||||
await page.getByLabel('Email').fill(email);
|
||||
await page.getByLabel('Password').fill(password);
|
||||
await page.getByLabel('Password', { exact: true }).fill(password);
|
||||
await page.getByRole('button', { name: 'Sign In' }).click();
|
||||
|
||||
await expect(page).toHaveURL('/documents');
|
||||
|
||||
@ -16,7 +16,7 @@ test('user can sign up with email and password', async ({ page }: { page: Page }
|
||||
await page.goto('/signup');
|
||||
await page.getByLabel('Name').fill(username);
|
||||
await page.getByLabel('Email').fill(email);
|
||||
await page.getByLabel('Password').fill(password);
|
||||
await page.getByLabel('Password', { exact: true }).fill(password);
|
||||
|
||||
const canvas = page.locator('canvas');
|
||||
const box = await canvas.boundingBox();
|
||||
@ -37,7 +37,7 @@ test('user can sign up with email and password', async ({ page }: { page: Page }
|
||||
test('user can login with user and password', async ({ page }: { page: Page }) => {
|
||||
await page.goto('/signin');
|
||||
await page.getByLabel('Email').fill(email);
|
||||
await page.getByLabel('Password').fill(password);
|
||||
await page.getByLabel('Password', { exact: true }).fill(password);
|
||||
await page.getByRole('button', { name: 'Sign In' }).click();
|
||||
|
||||
await page.waitForURL('/documents');
|
||||
|
||||
@ -22,7 +22,7 @@ test.describe('Document upload test', () => {
|
||||
});
|
||||
|
||||
test('user can upload a document succesfully', async ({ page }) => {
|
||||
await expect(page.locator('canvas')).toBeVisible();
|
||||
await expect(page.getByText('Drag & drop your document here.')).toBeVisible();
|
||||
});
|
||||
|
||||
test('user can send the document for signing succesfully', async ({ documentsPage, page }) => {
|
||||
|
||||
Reference in New Issue
Block a user