Skip to content

Cannot browser test the checkout process #105

@Jamesking56

Description

@Jamesking56

Bug description

When using Pest browser testing on Statamic Cargo with the built-in checkout form, whenever the browser test inserts customer data or address data, the AJAX request to /!/cart doesn't see any POST data at all.

How to reproduce

  1. Install Statamic + Cargo
  2. Setup Pest Browser Testing
  3. Write a browser test which goes through checkout, notice that the checkout cannot complete as it thinks there is no customer information or address information (the details do not save since the POST data is empty when reaching the controller)

Logs

Environment

Environment
Application Name: REDACTED
Laravel Version: 12.46.0
PHP Version: 8.4.16
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
URL: redacted.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-alpha.21 PRO

Statamic Addons
duncanmcclean/statamic-cargo: 1.0.0-alpha.13
statamic/seo-pro: 7.0.0-beta.6
visuellverstehen/statamic-classify: dev-statamic-6-support

Cargo
Carts: file
Orders: file
Payment Gateways: Stripe

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions