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 - Visuelles Testing in Deinem ...
Search
Ramona Schwering
April 16, 2021
Programming
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Let's get visual - Visuelles Testing in Deinem Symfony Projekt
Ramona Schwering
April 16, 2021
Transcript
38 slides
None
None
None
[Screenshot eines Visual bugs]
None
None
None
None
None
None
None
None
None
Nimm Cypress oder Panther… lege Screenshots irgendwo hin… mache Screenshots
im Test und vergleiche sie
None
Applitools Percy Storybook Open Source Plugins … und viele mehr
…
None
npm install --save-dev @percy/cypress … oder … yarn add --dev
@percy/cypress Installation
Einbindung // Am Anfang der cypress/support/commands.js import '@percy/cypress'; // In
cypress/plugins/index.js let percyHealthCheck = require(‚@percy/cypress/task'); module.exports = (on, config) => { on("task", percyHealthCheck); };
it('should screensshot', () => { cy.visit('/'); // Takes snapshot cy.percySnapshot('Titel');
}); Percy im Test
Percy im Test - Code im Test Percy als Tool
None
None
[Screenshot Percy Gitlab]
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 Zeit auf dem Client beeinflussen
None
Warten bis alles fertig ist // Beispiel: Ladezustände abwarten cy.get('.sw-data-grid__skeleton')
.should('not.exist'); cy.get('.sw-loader') .should('not.exist');
None
// Ein eigenes Command Cypress.Commands.add('changeElementStyling', (selector, imageStyle) => { //
Hier z.B. das Bild mit einem anderen ersetzen cy.get(selector) .invoke('attr', 'style', imageStyle) .should('have.attr', 'style', imageStyle); }); Ins CSS der Seite eingreifen
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 }} Github Action
None
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
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
440
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
790
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
640
小さなアプリを作って公開するまで
onozaty
0
220
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
370
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
300
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
140
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
はじめてのPLATEAU
nokonoko1203
1
660
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
190
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
220
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
Prompt Engineering for Job Search
mfonobong
0
590
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
Mobile First: as difficult as doing things right
swwweet
225
10k
So, you think you're a good person
axbom
PRO
2
2.3k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830
Designing for Performance
lara
612
70k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Side Projects
sachag
456
43k
Producing Creativity
orderedlist
PRO
348
41k