Skip to content

Example proposal: verify a form submission after a missing confirmation #3527

Open

Description

@royalpinto007

Is your feature request related to a problem? Please describe.

The checkout QA showcase checks the order confirmation. I'd like to cover a related case: the form submission reaches the server, but the confirmation never reaches the browser. A retry can create a second record while the confirmation still looks correct.

Describe the solution you'd like

A small local example with a form and a server-side submission counter. The server records the first submission, then drops the response. The example shows that retrying the submit creates a second record, then demonstrates checking the submission by a stable reference before retrying. The assertion is that exactly one record exists. This would be an example using the existing Stagehand API.

Describe alternatives you've considered

Waiting longer or checking for a success banner can tell us what the browser saw. The server-side check gives the example a way to tell whether the write happened when there is no banner.

Are you willing to contribute to implementing this feature or fix?

  • Yes, I can submit a PR

Would this fit as a small standalone example?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions