Wayfair Removed 80k of Long Term Failure Code with Sauce Labs

Wayfair is an American e-commerce company that sells furniture and home-goods. Formerly known as CSN Stores, the company was founded in 2002. Their digital platform offers 14 million items from more than 11,000 global suppliers.

The Challenge

Creating a scalable testing environment for a rapidly growing company

Wayfair was founded in 2002 as an online-only furniture and home goods retailer. Since then, customer expectations for online retail experiences have grown exponentially, creating an increasing need for digital confidence in online retail. To build and maintain a high quality online presence,  Wayfair needed to develop a scalable and agile testing practice. . Some of the primary challenges Wayfairf aced when building a scalable testing environment were o accountability issues, reliance on manual testing, a lack of standardized practices for writing code, and a lack of communication between QA & Engineering teams.  Having a large monolith repo and the reliance on manual testing caused the issues within the teams’ communication, ability to standardize their testing, and have team accountability. Without a standardization of testing, there is the possibility of errors amongst teams and difficulty performing root cause analysis. These challenges meant that testing at Wayfair was inconsistent and riddled with errors, which led to delayed deployments and negative experiences for customers using both their web and mobile applications. The team turned to Sauce Labs for help.

The Solution

Shifting to a UI Framework and creating common practices 

Wayfair wanted to make three major updates to create a more efficient development and testing process.

The Wayfair team began by adjusting their recruitment efforts, merging their QA and Engineering departments, and moving to a UI framework. To successfully transfer to a UI framework, Wayfair needed to standardize their use of Selenium.  Sauce Labs helped with this transition by articulating what a standardization of Selenium would look like. Standardizing  Selenium tests allows automation to run more smoothly and coherently across the teams. This resolves issues of accountability, communication, and reliance on manual testing. This expertise was ultimately the largest draw for Wayfair to adopt Sauce Labs.

On top of assisting Wayfair in their UI shift, Sauce Labs had the added bonus of providing SauceConnect tunnels. SauceConnect tunnels provide a more secure connection for their tests to run. “These SauceConnect Tunnels made it simple to provide one interface for anybody running any Codeception [UI framework] tests to access the services that they needed with the networking and security restrictions that came along with that,” said Gary White, Senior Software Engineer at Wayfair. By having the ability to use the SauceConnect tunnels, the difficulties of organizing work between teams was no longer an issue. Through their partnership with Sauce Labs, Wayfair was able to achieve their goals in testing with access to Selenium experts and the Sauce Connect Tunnels, all while merging their QA/Engineering teams.

Wayfair also identified Cypress as an additional necessity to their automation scaling. By making the motion to include Cypress in their testing process, over 80K lines of long term failure code were removed, clearing one third of Wayfair’s internal networking traffic. Additionally, this project removed a step in their deployment process that further increased bandwidth and supported more reliable Cypress and Selenium code. By implementing Cypress and Selenium into their testing process, Wayfair was able to create a more robust and scalable platform.

The Results

Improving deploy train, bandwidth, and empowering Developers 

Implementing Sauce Labs has been valuable for the Wayfair team, starting with their original transition to a UI framework, to their integration of Selenium and now Cypress. With these changes, they’ve been able to empower developers who had previously been left feeling frustrated with an inconsistent solution. “Being able to provide things that help developers move faster is more important than being able to be a developer yourself,” White shared. Creating a development platform can leave a lot of people disappointed, but “with Selenium and Sauce [Labs], Wayfair is able to give power back to their developers just by focusing on being able to keep their services up while having time to maintain the platform.”


Company Size

17,000+

Being able to provide things that help developers move faster is more important than being able to be a developer yourself...with Selenium and Sauce, Wayfair is able to give power back to their developers just by focusing on being able to keep their services up while having time to maintain the platform.

Gary White
Gary White, Senior Software Engineer

Topics

Visual Testing