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
25
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
accepting acceptance testing
Introduction to acceptance testing with ember-cli and ember-cli-mirage
cpow
August 12, 2016
Other Decks in Technology
See All in Technology
AI Agent SaaS を支える自社仮想化基盤への挑戦と実運用 / ai-agent-saas-virtualization
flatt_security
2
3.8k
地域 SRE コミュニティ最前線 / SRE NEXT 2026 Discussion Night Track C
muziyoshiz
0
210
Keeping applications secure by evolving OAuth 2.0 and OpenID Connect
ahus1
PRO
1
160
アカウントが増えてからでは遅い? ~ マルチアカウント統制の勘所 ~
kenichinakamura
0
230
Amazon EVS で VCF 9.0 / 9.1 のサポート開始まとめ
mtoyoda
0
290
KiCAD講習会②
tutcreators
0
110
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
110k
LLMやAIエージェントをソフトウェアに組み込むプラクティス
shibuiwilliam
1
360
Claude Codeとハーネスについて考えてみる
oikon48
18
9.4k
AIレビューはどこまで任せられるのか?自動化と人が背負うレビューの境界
sansantech
PRO
2
760
Claude Code公式skillで 自分の仕事を少しずつ手放そう!(Claude Code開発ノウハウ大公開スペシャル by クラスメソッド)
kaym
1
290
インフラと開発の垣根を超えていき!〜元AWSインフラエンジニアがAWS開発で奮闘している話〜
hatahata021
1
170
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Chasing Engaging Ingredients in Design
codingconduct
0
230
The Pragmatic Product Professional
lauravandoore
37
7.4k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
Mind Mapping
helmedeiros
PRO
1
280
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
Un-Boring Meetings
codingconduct
0
340
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
380
Large-scale JavaScript Application Architecture
addyosmani
515
110k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
420
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)