Skip to content

Output warnings/errors in Standard Output when recording if limits reached. #1689

@jennifer-shehane

Description

@jennifer-shehane

When our new billing portal is deployed, there will be warnings/errors when recording tests if limits reached. This will never affect test runs where the --record flag is omitted.

step 1

  • Grace Period warning over test recordings warning FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_PRIVATE_TESTS
  • Over test recordings warning (paid plan) FREE_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS

step 2

After doing warnings, extend handle 402 errors from the API which will have errors

  • Over test recordings error

Parallel runs TBD

  • Parallel flag warning/error (TBD)

This logic is similar to the custom errors here

switch err.statusCode

only now we need to handle even successful 200 response, because it will have warnings list attached postRunResponse@2.1.0. The error codes are listed for now here: https://github.com/cypress-io/cypress-api/wiki/Errors#warnings-when-creating-a-run-build

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions