@@ -159,7 +159,7 @@ AssertionError: True is not false
159
159
And we can commit this as the first cut of our FT.
160
160
161
161
162
- === A Quick Spike of a solution
162
+ === A Quick Spike of a Solution
163
163
164
164
This will be our first bit of JavaScript.
165
165
We're also interacting with the Bootstrap CSS framework,
@@ -179,7 +179,8 @@ The goat doesn't mind looking the other way for a bit.
179
179
180
180
This kind of prototyping activity is often called a "spike",
181
181
for http://stackoverflow.com/questions/249969/why-are-tdd-spikes-called-spikes[
182
- reasons that aren't entirely clear].
182
+ reasons that aren't entirely clear],
183
+ but it's a nice memorable name.
183
184
184
185
185
186
==== A Simple Inline Script
@@ -209,6 +210,7 @@ at the bottom of our _base.html_ template:
209
210
<1> `document.querySelector` is a way of finding an element in the DOM,
210
211
using CSS selector syntax, very much like the Selenium
211
212
`find_element(By.CSS_SELECTOR)` method from our FTs.
213
+ Grizzled readers may remember having to use jQuery's `$` function for this.
212
214
213
215
<2> `oninput` is how you attach an event listener "callback" function,
214
216
which will be called whenever the user inputs something into the text box.
0 commit comments