Zfilipin has submitted this change and it was merged.

Change subject: Simple test that signup has Create account button
......................................................................


Simple test that signup has Create account button

Change-Id: I4f4a26945378a09685914e8a708f332f64987233
---
A features/create_account.feature
A features/step_definitions/create_account_steps.rb
A features/support/pages/create_account_page.rb
3 files changed, 24 insertions(+), 0 deletions(-)

Approvals:
  Zfilipin: Verified; Looks good to me, approved



diff --git a/features/create_account.feature b/features/create_account.feature
new file mode 100644
index 0000000..639393a
--- /dev/null
+++ b/features/create_account.feature
@@ -0,0 +1,5 @@
+Feature: Create account
+
+  Scenario: Go to Create account page
+    Given I go to a Create account page
+    Then form has Create account button
diff --git a/features/step_definitions/create_account_steps.rb 
b/features/step_definitions/create_account_steps.rb
new file mode 100644
index 0000000..d292d82
--- /dev/null
+++ b/features/step_definitions/create_account_steps.rb
@@ -0,0 +1,7 @@
+Given /^I go to a Create account page$/ do
+  visit CreateAccountPage
+end
+
+Then /^form has Create account button$/ do
+  on(CreateAccountPage).create_account_element.should exist
+end
diff --git a/features/support/pages/create_account_page.rb 
b/features/support/pages/create_account_page.rb
new file mode 100644
index 0000000..39f6731
--- /dev/null
+++ b/features/support/pages/create_account_page.rb
@@ -0,0 +1,12 @@
+class CreateAccountPage
+  include PageObject
+  include URLModule
+
+  def self.url
+    URLModule.url('Special:CreateAccount')
+  end
+  page_url url
+
+  button(:create_account, id: 'wpCreateaccount')
+
+end

-- 
To view, visit https://gerrit.wikimedia.org/r/51002
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4f4a26945378a09685914e8a708f332f64987233
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Spage <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Zfilipin <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to