mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
covered blocked_domains with test, started account_activities
This commit is contained in:
parent
8fe9e46fc9
commit
db22f48990
3 changed files with 95 additions and 4 deletions
|
@ -30,17 +30,16 @@ class AdminAreaAdminUsersIntegrationTest < JavaScriptApplicationSystemTestCase
|
|||
|
||||
select 'Estonia', from: 'admin_user_country_code', match: :first
|
||||
|
||||
# option_select = '//div[@class="selectize-input items has-options full has-items"]'
|
||||
# find(:xpath, ".//table/tr").click
|
||||
# select 'User', from: 'admin_user_roles_', match: :first
|
||||
# '//div[@class="selectize-input items has-options full has-items"]'
|
||||
select_element = find(:xpath, "/html/body/div[2]/form/div[2]/div/div[7]/div[2]/div/div[1]")
|
||||
select_element.click
|
||||
|
||||
# /html/body/div[2]/form/div[2]/div/div[7]/div[2]/div/div[2]/div/div[1]
|
||||
option_element = find(:xpath, "/html/body/div[2]/form/div[2]/div/div[7]/div[2]/div/div[2]/div/div[1]")
|
||||
option_element.click
|
||||
|
||||
click_on 'Save'
|
||||
|
||||
# if user created with valid data then record successfuly, else it failed
|
||||
if valid
|
||||
assert_text 'Record created'
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue