-
Notifications
You must be signed in to change notification settings - Fork 2
/
79-record-a-test.patch
38 lines (30 loc) · 1.26 KB
/
79-record-a-test.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
record-a-test
From: Bryan Larsen <[email protected]>
Record a test using the [Selenium IDE Firefox extension](http://seleniumhq.org/projects/ide/). We are going to use the [rselenese format](http://wiki.openqa.org/display/SIDE/SeleniumOnRails), which you must add to Selenium IDE. (Options|Options|Formats|Add)
Record a small test, perhaps just the process of creating a new
account. Make sure and add some verify's, which you can find in your
right click menu.
After you've finished, tweak it so that it looks something like this:
SHOW_PATCH
---
test/selenium/create_account.rsel | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
create mode 100644 test/selenium/create_account.rsel
diff --git a/test/selenium/create_account.rsel b/test/selenium/create_account.rsel
new file mode 100644
index 0000000..18c0ca4
--- /dev/null
+++ b/test/selenium/create_account.rsel
@@ -0,0 +1,12 @@
+
+include_partial "setup_fixture_set", :set => "blank"
+open "/"
+click "link=Sign up"
+wait_for_page_to_load "30000"
+type "user_name", "Test User"
+type "user_email_address", "[email protected]"
+type "user_password", "test"
+type "user_password_confirmation", "test"
+click "//input[@value='Signup']"
+wait_for_page_to_load "30000"
+verify_text_present "Thanks for signing up!"