Don't check namespace in SpecialWantedtemplates
[lhc/web/wiklou.git] / tests / browser / features / step_definitions / create_account_steps.rb
1 #
2 # This file is subject to the license terms in the LICENSE file found in the
3 # qa-browsertests top-level directory and at
4 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
5 # qa-browsertests, including this file, may be copied, modified, propagated, or
6 # distributed except according to the terms contained in the LICENSE file.
7 #
8 # Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
9 # qa-browsertests top-level directory and at
10 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
11 #
12 Given(/^I go to Create account page at (.+)$/) do |path|
13 visit(CreateAccountPage, using_params: { page_title: path })
14 end
15
16 Then(/^form has Create account button$/) do
17 expect(on(CreateAccountPage).create_account_element).to exist
18 end
19
20 When(/^I submit the form$/) do
21 on(CreateAccountPage).create_account
22 end
23
24 Then(/^an error message is displayed$/) do
25 expect(on(CreateAccountPage).error_message_element.class_name).to eq "errorbox"
26 end