SlideShare a Scribd company logo
Visual AI
Enhanced Testing
By Christine Pinto
on Dynamic
Websites
01
DOM is Detached
Where did it go and
how can we deal
with it
Parallel CI Builds
How to combine
them into one test
manager batch
Lazy-Loading
How to win the
battle with lazy-
loading images for a
visual test
02 03
— Shorthand
Beautifully simple
storytelling
Create stunning, immersive
reading experiences in record
time.
Visual AI Enhanced Testing on Dynamic Websites
Lazy-Loading
01 How to win the battle with lazy-
loading images for a visual test
Visual AI Enhanced Testing on Dynamic Websites
Visual test result
with lazy-loading
images
cy.document().then((doc) => {
const height =
doc.body.scrollHeight;
for (let i = 0; i <= height; i += 100) {
cy.scrollTo(0, i);
cy.wait(100);
}
});
Answer: slow scrolling
Another method for slow
scrolling
cy.get("#editor-viewport").then($view => {
for (let i = 10; i <= 100; i += 10) {
let start = i - 10 + "%";
let l = i + "%";
cy.get("#editor-viewport").scrollTo(start, l);
cy.wait(100);
}
});
Visual AI Enhanced Testing on Dynamic Websites
DOM is Detached
02 Where did it go and how can
we deal with it
Element is
detached
from DOM
Cypress queries an element
that was passed from a parent
element, if the element at
some point becomes detached
from the DOM an error is
thrown.
If a tree falls in the forest and
no one has attached a “fall”
event listener, did it really fall?
Discussions and Solutions
● https://github.com/cypress-io/cypress/issues/7306
● https://www.cypress.io/blog/2019/01/22/when-can-the-test-click/
● https://github.com/testing-library/cypress-testing-
library/issues/153#issuecomment-692386444
How to deal with a
detached DOM
import "cypress-pipe";
Cypress.Commands.add("safeClick", { prevSubject: "element" }, $element =>
{
const click = $el => $el.click();
return cy
.wrap($element)
.should("be.visible")
.pipe(click)
.should($el => expect(Cypress.dom.isDetached($el)).to.be.false);
});
Parallel CI Builds
03 How to combine them into one
test manager batch
Visual AI Enhanced Testing on Dynamic Websites
If the CI runs a build
using multiple
concurrent instances,
then it needs to notify
Eyes when all of the
instances have
terminated
Configuration - applitools.config.js
Source:
https://applitools.com/docs/topics/integrations/
github-integration-ci-setup.html#SynchronizeBuilds
// Batch id is a unique identifier of a specific
batch run.
batchId: ID,
dontCloseBatches: true,
Indicate to Applitools when all of the
parallel builds have been completed
curl -d '' -X POST
https://eyesapi.applitools.com/api/externals/github/servers/githu
b.com/commit/$APPLITOOLS_BATCH_ID/complete?apiKey=$APP
LITOOLS_API_KEY
Source: https://applitools.com/blog/google-cloud-
build/
“First do it, then do it
right, then do it
better.”
By Addy Osmani
CREDITS: This presentation template was
created by Slidesgo, including icons by Flaticon,
and infographics & images by Freepik.
THANKS!
Do you have any questions?
pinto.christine@outlook.com
Twitter: @ChrisPint_
https://github.com/ChrisPint
Useful Plugins
● Cypress-real-events
● Cypress-wait-until
● Faker.js
● Mochawesome

More Related Content

PPTX
Automated Visual Testing in NSW.Gov.AU
PPTX
An Overview of Selenium
PDF
Visual AI Testing Using Applitools
PPTX
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
PDF
Applitools - Visual AI
PDF
Petri for kyiv.pptx
PPTX
ISTQB Foundation and Selenium Java Automation Testing
PPT
Continuous deployment
Automated Visual Testing in NSW.Gov.AU
An Overview of Selenium
Visual AI Testing Using Applitools
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
Applitools - Visual AI
Petri for kyiv.pptx
ISTQB Foundation and Selenium Java Automation Testing
Continuous deployment

What's hot (20)

PDF
Lean Quality & Engineering
PDF
Ship quality mobile apps with speed [Webinar]
PPTX
JavaScript Unit Testing
PDF
Automated Visual Testing at Scale : Real-life Example from Dow Jones
PPTX
Lap Around Visual Studio 2010 Ultimate And TFS 2010
PDF
Hubware test strategy improvements
PPTX
JavaScript Unit Testing
PDF
Multiplication and division of calabash tests
PPT
SOASTA Webinar: Process Compression For Mobile App Dev 120612
PDF
Playwright: A New Test Automation Framework for the Modern Web
PDF
Visual Automation Framework via Screenshot Comparison
PDF
Shift left-devoxx-pl
PDF
Quality Jam 2017: Elise Carmichael and Corey Pyle "Jumpstarting Your Test Aut...
PDF
Quality Jam 2017: Kevin Dunne "Macro Trends and Useful Tools that 'Get It'"
PDF
Don’t Go over the Waterfall: Keep Agile Testing Agile
PDF
CI in the frontend
PPTX
Real Devices or Emulators: Wen to use What for Automated Testing
PDF
Do you even need to automate the GUI?
PDF
Sitecheckm8 Pres
PPTX
Visual Studio LightSwitch (Beta 1) Overview
Lean Quality & Engineering
Ship quality mobile apps with speed [Webinar]
JavaScript Unit Testing
Automated Visual Testing at Scale : Real-life Example from Dow Jones
Lap Around Visual Studio 2010 Ultimate And TFS 2010
Hubware test strategy improvements
JavaScript Unit Testing
Multiplication and division of calabash tests
SOASTA Webinar: Process Compression For Mobile App Dev 120612
Playwright: A New Test Automation Framework for the Modern Web
Visual Automation Framework via Screenshot Comparison
Shift left-devoxx-pl
Quality Jam 2017: Elise Carmichael and Corey Pyle "Jumpstarting Your Test Aut...
Quality Jam 2017: Kevin Dunne "Macro Trends and Useful Tools that 'Get It'"
Don’t Go over the Waterfall: Keep Agile Testing Agile
CI in the frontend
Real Devices or Emulators: Wen to use What for Automated Testing
Do you even need to automate the GUI?
Sitecheckm8 Pres
Visual Studio LightSwitch (Beta 1) Overview
Ad

Similar to Visual AI Enhanced Testing on Dynamic Websites (20)

PDF
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
PPTX
Pushing Webperf Limits - We Love Speed 2024.pptx
PDF
[psuweb] Adaptive Images in Responsive Web Design
PDF
[refreshaustin] Adaptive Images in Responsive Web Design
PDF
[refreshpitt] Adaptive Images in Responsive Web Design
PDF
[wcatx] Adaptive Images in Responsive Web Design
PDF
[drupalcampatx] Adaptive Images in Responsive Web Design
PDF
[Austin WordPress Meetup] Adaptive Images in Responsive Web Design
PDF
[rwdsummit] Adaptive Images in Responsive Web Design
PDF
[HEWEBFL] Adaptive Images in Responsive Web Design
PPTX
TDC 2016 - Arquitetura Java - Spring Cloud
PPTX
F&O Summit 2023 Speaker X++ Tips and Tricks.pptx
PDF
Universal Declarative Services - Simon Chemouil
PPTX
Azure from scratch part 4
PDF
Advanced iOS Build Mechanics, Sebastien Pouliot
PDF
Practical Cloud & Workflow Orchestration
PDF
Serverless DevSecOps: Why We Must Make it Everyone's Problem | Hillel Solow
PDF
[wvbcn] Adaptive Images in Responsive Web Design
PDF
Christopher Schmitt, "Adaptive Images for Responsive Web Design"
PDF
[peachpit] Adaptive Images in Responsive Web Design
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
Pushing Webperf Limits - We Love Speed 2024.pptx
[psuweb] Adaptive Images in Responsive Web Design
[refreshaustin] Adaptive Images in Responsive Web Design
[refreshpitt] Adaptive Images in Responsive Web Design
[wcatx] Adaptive Images in Responsive Web Design
[drupalcampatx] Adaptive Images in Responsive Web Design
[Austin WordPress Meetup] Adaptive Images in Responsive Web Design
[rwdsummit] Adaptive Images in Responsive Web Design
[HEWEBFL] Adaptive Images in Responsive Web Design
TDC 2016 - Arquitetura Java - Spring Cloud
F&O Summit 2023 Speaker X++ Tips and Tricks.pptx
Universal Declarative Services - Simon Chemouil
Azure from scratch part 4
Advanced iOS Build Mechanics, Sebastien Pouliot
Practical Cloud & Workflow Orchestration
Serverless DevSecOps: Why We Must Make it Everyone's Problem | Hillel Solow
[wvbcn] Adaptive Images in Responsive Web Design
Christopher Schmitt, "Adaptive Images for Responsive Web Design"
[peachpit] Adaptive Images in Responsive Web Design
Ad

More from Applitools (20)

PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
PDF
Code and No-Code Journeys: The Maintenance Shortcut
PDF
Code and No-Code Journeys: The Coverage Overlook
PDF
Creating Automated Tests with AI - Cory House - Applitools.pdf
PDF
Navigating EAA Compliance in Testing.pdf
PDF
AI-Assisted, AI-Augmented & Autonomous Testing
PDF
Code or No-Code Tests: Why Top Teams Choose Both
PDF
The ROI of AI-Powered Testing, presented by Applitools
PDF
Building No-code Autonomous E2E Tests_Applitools.pdf
PDF
Conquer 6 Testing Challenges_Applitools.pdf
PDF
Autonomous End-to-End Testing for Online Banking Applications Presented with ...
PDF
Playwright Visual Testing Best Practices, presented by Applitools
PDF
Cross-Browser and Cross-Device Testing | Applitools in Action
PDF
Advanced Debugging Techniques | Applitools in Action.pdf
PDF
AI-Powered Testing Strategies for the Seasonal Shopping Surge.pdf
PDF
Test Automation for Dynamic Applications _ Applitools in Action.pdf
PDF
Proven Approaches to AI-Powered E2E Testing.pdf
PDF
Applitools Autonomous 2.0 Sneak Peek.pdf
PDF
Building the Ideal CI-CD Pipeline_ Achieving Visual Perfection
PDF
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Applitools Platform Pulse: What's New and What's Coming - July 2025
Code and No-Code Journeys: The Maintenance Shortcut
Code and No-Code Journeys: The Coverage Overlook
Creating Automated Tests with AI - Cory House - Applitools.pdf
Navigating EAA Compliance in Testing.pdf
AI-Assisted, AI-Augmented & Autonomous Testing
Code or No-Code Tests: Why Top Teams Choose Both
The ROI of AI-Powered Testing, presented by Applitools
Building No-code Autonomous E2E Tests_Applitools.pdf
Conquer 6 Testing Challenges_Applitools.pdf
Autonomous End-to-End Testing for Online Banking Applications Presented with ...
Playwright Visual Testing Best Practices, presented by Applitools
Cross-Browser and Cross-Device Testing | Applitools in Action
Advanced Debugging Techniques | Applitools in Action.pdf
AI-Powered Testing Strategies for the Seasonal Shopping Surge.pdf
Test Automation for Dynamic Applications _ Applitools in Action.pdf
Proven Approaches to AI-Powered E2E Testing.pdf
Applitools Autonomous 2.0 Sneak Peek.pdf
Building the Ideal CI-CD Pipeline_ Achieving Visual Perfection
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton

Recently uploaded (20)

PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
ai tools demonstartion for schools and inter college
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Nekopoi APK 2025 free lastest update
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
medical staffing services at VALiNTRY
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
System and Network Administration Chapter 2
2025 Textile ERP Trends: SAP, Odoo & Oracle
ai tools demonstartion for schools and inter college
Upgrade and Innovation Strategies for SAP ERP Customers
PTS Company Brochure 2025 (1).pdf.......
How to Choose the Right IT Partner for Your Business in Malaysia
Wondershare Filmora 15 Crack With Activation Key [2025
Nekopoi APK 2025 free lastest update
How Creative Agencies Leverage Project Management Software.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
medical staffing services at VALiNTRY
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Reimagine Home Health with the Power of Agentic AI​
VVF-Customer-Presentation2025-Ver1.9.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
CHAPTER 2 - PM Management and IT Context
Design an Analysis of Algorithms I-SECS-1021-03
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
System and Network Administration Chapter 2

Visual AI Enhanced Testing on Dynamic Websites

Editor's Notes

  • #15: Race condition The red flag in this case is that clicking manually after the test has failed works. If the application fails to respond correctly to the “click” event during the Cypress test, but handles the click correctly after, the problem is likely that the application was slow to respond, while Cypress was fast to act. In this case, when the framework shows the calendar modal, it starts attaching the event listeners to the DOM elements. However before the event listeners are attached, Cypress manages to find the DOM element with the required date and click on it. The “click” goes nowhere, since we know: If a tree falls in the forest and no one has attached a “fall” event listener, did it really fall? In our case, there was probably an event listener already attached and ready to process the actual click on a date element (that’s why the date is changing, even if the modal stays open), but no event listener has been attached yet to close the modal. Our test runner is getting ahead of the web application in this particular case.