* Change color of budget table scrollbar. * Update budget sidebar to use budget colors. * Update fontWeight for 'Category' to match rest of table * Update to use budget background * Update ExpenseGroup to use budget color * Update IncomeGroup to use budget color * Update SidebarCategory colors Change drag/drop to buttonPrimaryBackground so it will always be visible in any custom theme. Background to budget color. * Update SidebarGroup background to budget color * Update EnvelopeBudgetComponents Add 'budgetNumberNeutral' to cheveronDown in budgeted field instead of using default bare button text incases where bare button is set to normal button text and normal button is inverted. remove mobile color variable for shadow * Update BudgetTotals.tsx Use tableHeaderText for header. * Update BudgetSummary.tsx Use budget colors * Update MonthPicker.tsx change selected months at top from tableBorderHover color to buttonPrimaryBackground. * [autofix.ci] apply automated fixes * Update EnvelopeBudgetComponents.tsx * Update BudgetTotals.tsx revert * Update SidebarCategory.tsx * Update TrackingBudgetComponents to use budget colors * [autofix.ci] apply automated fixes * Update BudgetSummary to use budget colors * Update BudgetTotal.tsx * Update ExpenseProgress.tsx * Update IncomeProgress.tsx * Update Saved.tsx * Use consistent color variables on budget pages. * Update IncomeProgress.tsx * Update ExpenseProgress.tsx * Update VRT screenshots Auto-generated by VRT workflow PR: #6820 * Update EnvelopeBudgetComponents Budget total header to follow current/other month style. * Update EnvelopeBudgetComponents.tsx * [autofix.ci] apply automated fixes * Update EnvelopeBudgetComponents.tsx * Update EnvelopeBudgetComponents.tsx * [autofix.ci] apply automated fixes * Update EnvelopeBudgetComponents.tsx * Revert EnvelopeBudgetComponents.tsx * [autofix.ci] apply automated fixes * Update EnvelopeBudgetComponents.tsx * Update EnvelopeBudgetComponents.tsx * Update EnvelopeBudgetComponents.tsx * Revert again :) EnvelopeBudgetComponents.tsx --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Actual on the web
E2E tests
E2E (end-to-end) tests use Playwright. Running them requires an Actual server to be running either locally or on a remote server.
Functional
Running against the local server:
# Start the development server
yarn start
# Run against the local server (localhost:3001)
yarn e2e
Running against a remote server:
E2E_START_URL=http://my-remote-server.com yarn e2e
Visual regression
Visual regression tests (also known as screenshot tests) check that the visual appearance of the product has not regressed. Each environment has slightly different colors, fonts etc. Mac differs from Windows which differs from Linux. In order to have a stable test environment for visual comparisons - you must use a standartised docker container. This ensures that the tests are always ran in a consistent environment.
Prerequisites:
- Docker installed
Running against the local server
First start a dev instance:
HTTPS=true yarn start
or using the dev container:
HTTPS=true docker compose up --build
Note the network IP address and port the dev instance is listening on.
Next, navigate to the root of your project folder, run the standardized docker container, and launch the visual regression tests from within it.
Run via yarn:
# By default, this connects to https://localhost:3001
yarn vrt:docker
# To use a different ip and port:
yarn vrt:docker --e2e-start-url https://ip:port
# To update snapshots, use the following command:
yarn vrt:docker --e2e-start-url https://ip:port --update-snapshots
Run manually:
# Run docker container
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.57.0-jammy /bin/bash
# If you receive an error such as "docker: invalid reference format", please instead use the following command:
docker run --rm --network host -v ${pwd}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.57.0-jammy /bin/bash
# Once inside the docker container, run the VRT tests: important - they MUST be ran against a HTTPS server.
# Use the ip and port noted earlier
E2E_START_URL=https://ip:port yarn vrt
# To update snapshots, use the following command:
E2E_START_URL=https://ip:port yarn vrt --update-snapshots
Running against a remote server
You can also run the tests against a remote server by passing the URL:
Run in standardized docker container:
E2E_START_URL=https://my-remote-server.com yarn vrt:docker
# Or pass in server URL as argument
yarn vrt:docker --e2e-start-url https://my-remote-server.com
Run locally:
E2E_START_URL=https://my-remote-server.com yarn vrt