Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Let's get visual - Visuelles Testing in Deinem ...
Search
Ramona Schwering
April 16, 2021
Programming
0
130
Let's get visual - Visuelles Testing in Deinem Symfony Projekt
Ramona Schwering
April 16, 2021
Tweet
Share
More Decks by Ramona Schwering
See All by Ramona Schwering
Plants vs thieves: Automated Tests in the World of Web Security
leichteckig
0
160
From the Crypt to the Code
leichteckig
0
90
You shall not pass!? A short story of customizable login experiences
leichteckig
0
45
Access Granted!
leichteckig
0
92
Who are vue? Authn in Vue, the important parts
leichteckig
0
73
Vue Fortified: Best Practices for Web App Security
leichteckig
0
130
It's a (testing) trap! - Common end-to-end pitfalls and how to solve them
leichteckig
0
160
Measure and improve frontend performance by using test automation
leichteckig
0
160
You belong here! On hurdles and happiness as women in IT
leichteckig
0
62
Other Decks in Programming
See All in Programming
Swift Testingのモチベを上げたい
stoticdev
2
220
DevNexus - Create AI Infused Java Apps with LangChain4j
kdubois
0
150
The Clean ArchitectureがWebフロントエンドでしっくりこないのは何故か / Why The Clean Architecture does not fit with Web Frontend
twada
PRO
63
21k
気がついたら子供が社会人になって 自分と同じモバイルアプリエンジニアになった件 / Parent-Child Engineers
koishi
0
140
Domain-Driven Design (Tutorial)
hschwentner
13
22k
AWS Step Functions は CDK で書こう!
konokenj
5
940
FrontendUp_新規事業で_Remixを採用した理由と対策.pdf
rymizuki
0
100
Rubyと自由とAIと
yotii23
6
1.9k
はじめての Go * WASM * OCR
sgash708
1
130
React 19アップデートのために必要なこと
uhyo
8
1.6k
エンジニアに許された特別な時間の終わり
watany
9
6.8k
Drawing Heighway’s Dragon- Recursive Function Rewrite- From Imperative Style in Pascal 64 To Functional Style in Scala 3
philipschwarz
PRO
0
190
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1.1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
52k
Scaling GitHub
holman
459
140k
For a Future-Friendly Web
brad_frost
176
9.6k
Mobile First: as difficult as doing things right
swwweet
223
9.5k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Visualization
eitanlees
146
15k
Speed Design
sergeychernyshev
28
820
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
400
It's Worth the Effort
3n
184
28k
Six Lessons from altMBA
skipperchong
27
3.6k
Transcript
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