Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Let's get visual - Visual testing in your project
Search
Ramona Schwering
November 24, 2021
Programming
1.2k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Let's get visual - Visual testing in your project
Ramona Schwering
November 24, 2021
Transcript
50 slides
None
None
None
[Screenshot eines
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
// First: Loading installation script // Run install script ./vrt-install.sh
// Next: Install Cypress plugin npm install @visual-regression-tracker/agent-cypress
None
None
None
main 6.4.7.0
6.4.7.0 6.4.7.0
None
None
None
None
name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps:
- name: Checkout uses: actions/
[email protected]
- name: Install run: yarn - name: Percy Test uses: percy/
[email protected]
with: command: "cypress run" env: PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
[Screenshot Percy Gitlab]
None
Percy im Test - Code im Test
None
None
None
None
None
const now = new Date(2018, 1, 1) .getTime(); // freezes
the system time to Jan 1, 2018 cy.clock(now); // continue with your normal tests below
None
// Wait for loading times cy.get('.grid-selection‘) .should('not.exist'); cy.get('.sw-loader') .should('not.exist');
None
None
None
// Command usage await percySnapshot('Home page', { percyCSS: `iframe {
display: none; }` }); version: 1 snapshot: percy-css: | iframe { display: none; }
// An own Command Cypress.Commands.add('changeElementStyling', (selector, imageStyle) => { //
E.g. replace the image with a fixed one cy.get(selector) .invoke('attr', 'style', imageStyle) .should('have.attr', 'style', imageStyle); });
None
None
None
None
More Decks by Ramona Schwering
See All by Ramona Schwering
Artful Defense
leichteckig
0
150
a11y club: The Cake Is a Lie... And So Is Your Login’s a11y.
leichteckig
0
25
Dangerous Reactivity: Why AI Output Is the New XSS Vue
leichteckig
0
49
React with Caution: How to Hack Your React App (And Fix It Too)
leichteckig
0
37
Vue'tiful Defense
leichteckig
0
190
Workshop: The Cake is a Lie!
leichteckig
0
50
The Cake Is a Lie... And So Is Your Login’s Accessibility
leichteckig
0
260
Plants vs thieves: Automated Tests in the World of Web Security
leichteckig
0
250
From the Crypt to the Code
leichteckig
0
270
Other Decks in Programming
See All in Programming
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
120
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
680
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
220
小さなアプリを作って公開するまで
onozaty
0
220
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
350
Debian JP Projectのサーバー構成
uwabami
1
160
はじめてのKubernetesコントリビューション
nasa9084
0
260
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
360
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
190
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
690
Into the Great Unknown - MozCon
thekraken
41
2.8k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Product Roadmaps are Hard
iamctodd
55
13k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570
Become a Pro
speakerdeck
PRO
31
6.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k