The challenge
Photobucket runs a consumer photo storage and sharing service. It wanted to speed up feature releases and get the test coverage it needed across the code base.
Its Cypress tests ran slowly, even after optimization. In its NEXT app, GraphQL calls returned a boolean instead of the mutated data.
What we did
Built a Cypress test suite
We built an end-to-end suite for the NEXT app with programmatic login, page objects and the Arrange-Act-Assert structure.
Made tests environment-agnostic
We made the configuration environment-agnostic and added fixtures for each environment and plan tier.
Fixed the GraphQL responses
We added a GraphQL expert, and the back end now returns the mutated data.
Documented the process
We wrote a test plan, test scripts, testing process documents, a CI/CD time-limit analysis and a knowledge transfer document.
The impact
What changed for the business.
Broad test coverage
The end-to-end suite reached 37 spec files and 80 test suites.
Full run under 10 minutes
A full run of the suite took 9 minutes and 49 seconds.
GraphQL returns data
GraphQL mutations now return the mutated data instead of a boolean.
A process the team can follow
Testing process documents and a knowledge transfer document left the team a clear way to keep the suite going.