- Clean Playwright's configuration:
- Remove artificial 500ms delay between each step
- Group all tests under a `chrome` project relying on a `setup` project
to get an authentication state which all tests can reuse
- Changes on the `Sign up with invite link via email` test:
- Generate a new email for each test trial, as previously it was failing
when run many times
- Make deleting the account part of the test; if we write other tests
for account sign-up, we'll prefer to delete the accounts with an HTTP
call to speed up things
- Added some assertions to ensure we reached steps when expected, as we
removed the 500ms delay between each step, and it made some assertions
fail
- Wrote new tests for workflows:
- Created `Create workflow`, a test asserting we can create a workflow
from the record table
- Created `Create simple workflow`, a test asserting we can create a
simple flow; I will add more assertions to this test and write other
tests once this first PR is approved
- I make HTTP calls to delete and destroy workflows after they run to
keep the database clean
- Added a data-testid to ensure we focus elements from the Cmd+K; our
selectors are not strong – see `getByRole('textbox')` – and I preferred
to scope them to a root element
- Added an `aria-label` to a button
---------
Co-authored-by: prastoin <paul@twenty.com>
20 lines
946 B
Plaintext
20 lines
946 B
Plaintext
# Note that provide always without trailing forward slash to have expected behaviour
|
|
FRONTEND_BASE_URL=http://localhost:3001
|
|
BACKEND_BASE_URL=http://localhost:3000
|
|
DEFAULT_LOGIN=tim@apple.dev
|
|
DEFAULT_PASSWORD=Applecar2025
|
|
WEBSITE_URL=https://twenty.com
|
|
|
|
# === DO NOT USE, WORK IN PROGRESS ===
|
|
# This URL must have trailing forward slash as all REST API endpoints have object after it
|
|
# Documentation for REST API: https://twenty.com/developers/rest-api/core#/
|
|
# REST_API_BASE_URL=http://localhost:3000/rest/
|
|
|
|
# Documentation for GraphQL API: https://twenty.com/developers/graphql/core
|
|
# GRAPHQL_BASE_URL=http://localhost:3000/graphql
|
|
|
|
# Without this key, all API tests will fail, to generate this key
|
|
# Log in to Twenty workspace, go to Settings > Developers, generate new key and paste it here
|
|
# In order to use it, header Authorization: Bearer token must be used
|
|
# This key works for both REST and GraphQL API
|
|
# API_DEV_KEY=fill_with_proper_key |