May 2024 Summaries
8 posts from Cypress
Filter
Month:
Year:
Post Summaries
Back to Blog
Selectors are integral to frontend development and testing, enabling interaction with elements within the Document Object Model (DOM). In automated testing frameworks such as Cypress, selectors are essential for creating robust and maintainable tests by accurately identifying elements. This blog explores the types of selectors, including ID, class, tag, attribute, data attribute, combinator, and XPath selectors, and their role in the context of Cypress, a popular end-to-end testing framework. It covers the importance of DOM traversal, offering various commands like .find(), .parent(), and .children() to navigate complex structures. The document emphasizes the necessity of selector stability, advising the use of data attributes and semantic HTML to avoid brittle tests. Best practices include prioritizing readability, using Cypress's built-in assertions, and handling dynamic elements with commands like .should('exist'). Advanced techniques such as chaining commands, conditional testing, and custom assertions further enhance test reliability. The blog concludes by underscoring the critical role of selectors in automated testing, advocating for practices that ensure tests remain resilient as applications evolve, ultimately fostering more reliable web applications.
May 31, 2024
1,757 words in the original blog post.
The Cypress Ambassador program is a initiative that supports top advocates of the Cypress testing tool, offering them speaking opportunities, personalized hubs, and visibility within an extensive network. Aaron Goff, a current Cypress Ambassador, participates in the program because it allows him to mentor others and help them grow their skills with Cypress. He helps others by giving company-wide talks, making himself available to teammates for guidance, and being active on StackOverflow. Aaron's experience with Cypress has led him to value features like `cy.intercept()` and best practices such as writing independent tests. Outside of his work with Cypress, he enjoys collecting vinyl records and renovating his home. The Ambassador program aims to highlight the work of its ambassadors and provide new experiences, resources, and benefits to support their advocacy efforts. By sharing the stories of ambassadors like Aaron, the Cypress Community Team hopes to inspire others to join the community and empower each other through shared knowledge and expertise.
May 30, 2024
497 words in the original blog post.
The Cypress Ambassador Spotlight features Olga Trofimova, a dedicated advocate who is motivated to enhance the Cypress framework, educate others, and improve the QA process. Through one-on-one teaching sessions, Olga assists users in navigating Cypress, highlighting features such as snapshots, video recording, and easy selector retrieval. Her favorite best practices include efficient element selection and using Cypress Studio for quick test recording. Outside of her professional life, Olga is passionate about traveling, wine collecting without consumption for health reasons, and caring for her dog, Kotlin, with an interest in zoo-psychology. She is proud of her move to Germany and her participation in IT conferences. Olga advises new users to identify their specific needs for using Cypress. The Cypress Ambassador Program aims to support and highlight top advocates like Olga by offering them opportunities and resources to empower others and connect with the community.
May 23, 2024
405 words in the original blog post.
Koen Van Belle is a Cypress Ambassador who is motivated by a desire to teach and learn more about Cypress and the testing community, and he currently helps others by answering questions on Discord and StackOverflow, as well as writing occasional blog posts. He appreciates the ease of use of Cypress and considers its retry-ability feature to be a key best practice for reducing test flakiness. Outside of work, Van Belle enjoys reading and archery, and he is proud of having become a technical point of contact in his career, which allowed him to answer questions and help others. For new users, he recommends getting started with Cypress by installing it and learning through hands-on experience. The Cypress Ambassador program, which Van Belle is a part of, aims to support top advocates around the world by offering speaking opportunities, resources, and visibility, and it highlights the work of its ambassadors who embody the community spirit through their advocacy and help empower others.
May 20, 2024
369 words in the original blog post.
In a recent webinar, David Ingraham, a Senior SDET at Matium and Cypress ambassador, explored the issue of test flakiness in software development, offering strategies for improving test stability. Key points included understanding the causes of test flakiness, such as environmental variations and race conditions, and employing methods to identify and manage flaky tests. Ingraham emphasized the use of Cypress Cloud, which aids in managing flakiness through features like experimental retries and test analytics, and highlighted the importance of ensuring test reliability by maintaining test independence and reevaluating persistently flaky tests. He also addressed data handling within tests, advocating for controlled test states, and discussed optimizing tests with tools like Cypress's cy.intercept command. The session underscored the importance of accountability and a culture of awareness within teams to proactively address testing challenges, ultimately aiming for a robust and efficient testing suite where flakiness is managed rather than eliminated.
May 17, 2024
668 words in the original blog post.
Vineet Kothari, a Cypress Ambassador, is driven by his passion for testing and automation, which allows him to connect deeply with fellow testers and developers. He actively engages with the Cypress community by providing guidance, sharing best practices, and creating educational content to support users. Kothari highlights Cypress's user-friendly interface and its ability to facilitate precise and comprehensive testing scenarios as his favorite features. He emphasizes the importance of writing clear test cases, integrating tests into the CI pipeline, and ensuring test stability to minimize flakiness. Outside of work, Kothari enjoys outdoor activities, cooking, and soccer. Professionally, he is proud of leading a team to implement Cypress as the primary testing framework, enhancing testing processes and coverage. For newcomers to Cypress, he recommends starting with the documentation and joining the community discord. The Cypress Ambassador program aims to support and highlight top advocates, offering them speaking opportunities and a platform to empower others.
May 09, 2024
726 words in the original blog post.
The Cypress Ambassador program is a initiative that supports top advocates of the Cypress testing platform, offering them speaking opportunities, personalized resources, and visibility within the community. One such ambassador, Sam E. Lawrence, participates in the program by sharing his knowledge and experience with others through various channels, including Discord and GitHub, and teaching his team at work. He values the community aspect of Cypress and aims to help others discover its benefits while avoiding common pitfalls. Lawrence's favorite feature is Test Replay, which allows for inspecting the DOM as it was during a test, and he advocates for avoiding explicit waits in favor of cleaner code. Outside of work, he enjoys producing music, gardening, and cooking, and is proud of setting up and maintaining a large-scale testing infrastructure at his workplace. For new users, he recommends starting with writing a basic test to get hands-on experience with Cypress. The Ambassador program is part of the larger Cypress Community Team's efforts to empower and connect with its users, and will continue to highlight the work of its ambassadors throughout the year.
May 02, 2024
464 words in the original blog post.
The new Data Extract API, now available for Enterprise Cypress Cloud plans, allows users to access detailed test data, including individual test results, status, error messages, and more. This capability helps organizations understand app quality, enforce testing standards, streamline workflows, and create dashboards to demonstrate testing value to leadership. Users can explore sample data in the Enterprise Reporting section and download test results in various formats for offline use. The API is simple to set up, with data available in JSON, CSV, and Excel formats for integration into business intelligence platforms. Documentation is provided on the website, and data is updated daily, with historical access determined by data retention limits in Cypress Cloud.
May 01, 2024
256 words in the original blog post.