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
accepting acceptance testing
Search
cpow
August 12, 2016
Technology
0
24
accepting acceptance testing
Introduction to acceptance testing with ember-cli and ember-cli-mirage
cpow
August 12, 2016
Tweet
Share
Other Decks in Technology
See All in Technology
RSCの時代にReactとフレームワークの境界を探る
uhyo
10
3.1k
フィンテック養成勉強会#56
finengine
0
130
Bye-Bye Query Spaghetti: Write Queries You'll Actually Understand Using Pipelined SQL Syntax
tobiaslampertlotum
0
140
広報における効果的なプロンプトエンジニアリング入門.pdf
suguruooki
0
110
AI開発ツールCreateがAnythingになったよ
tendasato
0
110
MCPで変わる Amebaデザインシステム「Spindle」の開発
spindle
PRO
3
2.9k
Obsidian応用活用術
onikun94
1
400
なぜスクラムはこうなったのか?歴史が教えてくれたこと/Shall we explore the roots of Scrum
sanogemaru
4
1.2k
Grafana Meetup Japan Vol. 6
kaedemalu
1
310
AWSで始める実践Dagster入門
kitagawaz
0
330
複数サービスを支えるマルチテナント型Batch MLプラットフォーム
lycorptech_jp
PRO
0
210
ガチな登山用デバイスからこんにちは
halka
1
220
Featured
See All Featured
How GitHub (no longer) Works
holman
315
140k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
13k
A Modern Web Designer's Workflow
chriscoyier
696
190k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
KATA
mclloyd
32
14k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
580
Transcript
Accepting Acceptance Testing Chris Power
Chris Power Deets • @cpowrox Fun Facts • pisces •
soy • birch trees • grass
Discussion Overview of Acceptance testing Ember, and how it handles
Acceptance testing Implement basic acceptance tests for requirement
What is Acceptance testing “acceptance testing is a test conducted
to determine if the requirements of a specification or contract are met”
How does do it? With a suite of different tools
• Ember.Test • Qunit • Ember-cli-mirage
Ember.Test Helpers Synchronous Helpers find(selector, context); currentPath(); currentRouteName(); currentURL(); Asynchronous
Helpers visit(url); fillIn(selector, text); click(selector); Wait Helper andThen();
Example Structure import { test } from 'qunit'; import moduleForAcceptance
from 'application/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | landing page'); test('User sees landing page before he/she can vote', function(assert) { visit('/vote'); andThen(() => { assert.equal(find(‘.landing’).length(), 1, ‘landing page is currently visible'); }); }); Importing build up / teardown stuff Asynchronous Helper Wait Helper Qunit Assertion Synchronous Helper
Let’s Code an Acceptance Test!
What does Zark want? User to rate a pokemon 1.
they see a landing page 2. after clicking through. they see a pokemon 3. they vote on hot/not and see value updated 4. they try to click again to get another pokemon 5. when they’re out of pokemon, they return home
What have we done? • Proved that our contract /
specification works • A sanity check for all devs/qa • Groundwork for how the application behaves
Thank you! (Please sign your NDAs on the way out)