<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;&lt;em&gt;(1) The following steps refer to an earlier defined object, they fail if they can&amp;#8217;t find it&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Note: a space was left inside the quotes for readability. This needs to be removed.&lt;/p&gt;
&lt;h2&gt;Debugging &amp;amp; story building&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;Then show the page&lt;/li&gt;
	&lt;li&gt;Then show the &lt;strong&gt;users&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;Then show the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Authorization&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;Given the user &amp;#8217; &lt;strong&gt;Andre&lt;/strong&gt; &amp;#8217; logs in with password &amp;#8217; &lt;strong&gt;123&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then the user &amp;#8217; &lt;strong&gt;Andre&lt;/strong&gt; &amp;#8217; should not be able to log in with password &amp;#8217; &lt;strong&gt;123&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;Given he/she logs in with password &amp;#8217; &lt;strong&gt;123&lt;/strong&gt; &amp;#8217; (1)&lt;/li&gt;
	&lt;li&gt;Given he/she is logged in (1)&lt;/li&gt;
	&lt;li&gt;Given he/she logs out (1)&lt;/li&gt;
	&lt;li&gt;When he/she logs out (1)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Navigation&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;When he/she clicks the &amp;#8217; &lt;strong&gt;Employees&lt;/strong&gt; &amp;#8217; link&lt;/li&gt;
	&lt;li&gt;When he/she clicks the second &amp;#8217; &lt;strong&gt;Employees&lt;/strong&gt; &amp;#8217; link&lt;/li&gt;
	&lt;li&gt;When he/she clicks the show link for the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she clicks the edit link for the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she clicks the destroy link for the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she clicks &amp;#8216;Part of my unit&amp;#8217; for the &lt;strong&gt;employee&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she clicks the destroy link&lt;/li&gt;
	&lt;li&gt;When he/she confirms the popup&lt;/li&gt;
	&lt;li&gt;When he/she cancels the popup&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Inspection&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;Then he/she should see errors&lt;/li&gt;
	&lt;li&gt;Then he/she should see a popup with the message &amp;#8217; &lt;strong&gt;Are you sure?&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then he/she should (not) see the words &amp;#8217; &lt;strong&gt;Monkey&lt;/strong&gt; &amp;#8217;, &amp;#8217; &lt;strong&gt;Cart&lt;/strong&gt; &amp;#8217; or/and &amp;#8217; &lt;strong&gt;Ant&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then he/she should (not) see the word &amp;#8217; &lt;strong&gt;Monkey&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then he/she should (not) see the words &amp;quot; &lt;strong&gt;This person doesn&amp;#8217;t have any notes&lt;/strong&gt; &amp;quot;&lt;/li&gt;
	&lt;li&gt;Then he/she should (not) see the long date &amp;#8217; &lt;strong&gt;tomorrow&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then he/she should (not) see the short dates &amp;#8217; &lt;strong&gt;tomorrow&lt;/strong&gt; &amp;#8217; and &amp;#8217; &lt;strong&gt;next week&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then he/she should (not) see the regex &amp;#8217; &lt;strong&gt;&lt;code&gt;[0-9]+&lt;/code&gt;&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then he/she should be redirected by javascript&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;Then he/she should (not) see a table&lt;/li&gt;
	&lt;li&gt;And the first row should contain the word &amp;#8216;&lt;strong&gt;first row&lt;/strong&gt;&amp;#8217;&lt;/li&gt;
	&lt;li&gt;And the next row should contain the word &amp;#8216;&lt;strong&gt;second row&lt;/strong&gt;&amp;#8217;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If your table looks like a table, but is actually a div with multiple divs inside:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Then he/she should see the box with id &amp;#8216;&lt;strong&gt;box&lt;/strong&gt;&amp;#8217;&lt;/li&gt;
	&lt;li&gt;And the third row should contain the word &amp;#8216;&lt;strong&gt;third row&lt;/strong&gt;&amp;#8217;&lt;/li&gt;
	&lt;li&gt;And the next row should not contain the word &amp;#8216;&lt;strong&gt;fifth row&lt;/strong&gt;&amp;#8217;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Forms &amp;amp; Fields&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;When he/she selects &amp;#8217; &lt;strong&gt;Partner name&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she chooses &amp;#8217; &lt;strong&gt;Partner name&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she picks &amp;#8217; &lt;strong&gt;Yes&lt;/strong&gt; &amp;#8217; &lt;em&gt;(works on both radio and select fields)&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;When he/she (un)checks &amp;#8217; &lt;strong&gt;Active&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she clicks the button&lt;/li&gt;
	&lt;li&gt;When he/she fills the &amp;#8217; &lt;strong&gt;End of care&lt;/strong&gt; &amp;#8217; date field with &amp;#8217; &lt;strong&gt;tomorrow&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she fills the &amp;#8217; &lt;strong&gt;End of care&lt;/strong&gt; &amp;#8217; date field with &amp;#8217; &lt;strong&gt;next week&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she fills the &amp;#8217; &lt;strong&gt;End of care&lt;/strong&gt; &amp;#8217; date field with &amp;#8217; &lt;strong&gt;2008-01-01&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she fills the third &amp;#8217; &lt;strong&gt;Date&lt;/strong&gt; &amp;#8217; date field with &amp;#8217; &lt;strong&gt;2008-01-01&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she fills the &amp;#8217; &lt;strong&gt;Name&lt;/strong&gt; &amp;#8217; field with &amp;#8217; &lt;strong&gt;Nedap&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;When he/she fills the second &amp;#8217; &lt;strong&gt;Name&lt;/strong&gt; &amp;#8217; field with &amp;#8217; &lt;strong&gt;Nedap&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Models &amp;amp; Relationships (setup)&lt;/h2&gt;
&lt;h3&gt;Teardown&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Given there are no &lt;strong&gt;units&lt;/strong&gt; in the system&lt;/li&gt;
	&lt;li&gt;Given there are no &lt;strong&gt;units, periods and employees&lt;/strong&gt; in the system&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Creating objects&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Given a &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Dummy&lt;/strong&gt; &amp;#8217; exists&lt;/li&gt;
	&lt;li&gt;Given a &lt;strong&gt;client&lt;/strong&gt; with &lt;strong&gt;birth name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Hiah&lt;/strong&gt; &amp;#8217; exists&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Checking objects&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Then a &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Dummy&lt;/strong&gt; &amp;#8217; should exist&lt;/li&gt;
	&lt;li&gt;Then the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Dummy&lt;/strong&gt; &amp;#8217; should (not) be &lt;strong&gt;planner&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;Then it should (not) be &lt;strong&gt;planner&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;Then the &lt;strong&gt;role&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Tester&lt;/strong&gt; &amp;#8217; should (not) belong to a &lt;strong&gt;right&lt;/strong&gt; with &lt;strong&gt;controller&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Employees&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then it should (not) belong to a &lt;strong&gt;right&lt;/strong&gt; with &lt;strong&gt;controller&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Employees&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then the &lt;strong&gt;role&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Tester&lt;/strong&gt; &amp;#8217; should (not) have a &lt;strong&gt;right&lt;/strong&gt; with &lt;strong&gt;controller&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Employees&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Then it should (not) have a &lt;strong&gt;right&lt;/strong&gt; with &lt;strong&gt;controller&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Employees&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Updating objects&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Given the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Dummy&lt;/strong&gt; &amp;#8217; has &lt;strong&gt;password&lt;/strong&gt; &amp;#8217; &lt;strong&gt;123&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Given the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Dummy&lt;/strong&gt; &amp;#8217; is &lt;strong&gt;valid from&lt;/strong&gt; &amp;#8217; &lt;strong&gt;last monday&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Given it has &lt;strong&gt;password&lt;/strong&gt; &amp;#8217; &lt;strong&gt;123&lt;/strong&gt; &amp;#8217; (1)&lt;/li&gt;
	&lt;li&gt;Given it is &lt;strong&gt;valid to&lt;/strong&gt; &amp;#8217; &lt;strong&gt;next week&lt;/strong&gt; &amp;#8217; (1)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Creating relationships between objects&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Given the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;username&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Dummy&lt;/strong&gt; &amp;#8217; has a &lt;strong&gt;responsibility&lt;/strong&gt; for the &lt;strong&gt;role&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Planner&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Given it has a &lt;strong&gt;responsibility&lt;/strong&gt; for the &lt;strong&gt;role&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Planner&lt;/strong&gt; &amp;#8217; (1)&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;Given the &lt;strong&gt;user&lt;/strong&gt; with &lt;strong&gt;name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Andre&lt;/strong&gt; &amp;#8217; belongs to a &lt;strong&gt;person&lt;/strong&gt; with &lt;strong&gt;last name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217;&lt;/li&gt;
	&lt;li&gt;Given it belongs to a &lt;strong&gt;person&lt;/strong&gt; with &lt;strong&gt;last name&lt;/strong&gt; &amp;#8217; &lt;strong&gt;Foeken&lt;/strong&gt; &amp;#8217; (1)&lt;/li&gt;
&lt;/ul&gt;</body>
  <created-at type="datetime">2008-08-19T05:06:55-07:00</created-at>
  <id type="integer">46807</id>
  <permalink>available-steps</permalink>
  <repository-id type="integer">43898</repository-id>
  <title>Available steps</title>
  <updated-at type="datetime">2008-09-11T01:29:51-07:00</updated-at>
  <user-id type="integer">21126</user-id>
</wiki>
