trabajo-afectivo/test/browser/admin_overview_test.rb

42 lines
755 B
Ruby
Raw Normal View History

# encoding: utf-8
require 'browser_test_helper'
class AdminOverviewTest < TestCase
def test_account_add
name = "some overview #{rand(99_999_999)}"
@browser = browser_instance
login(
username: 'master@example.com',
password: 'test',
url: browser_url,
)
tasks_close_all()
# add new overview
overview_create(
data: {
2017-04-19 19:54:04 +00:00
name: name,
roles: ['Agent'],
selector: {
'Priority' => '1 low',
},
'order::direction' => 'down',
}
)
# edit overview
overview_update(
data: {
2017-04-19 19:54:04 +00:00
name: name,
roles: ['Agent'],
selector: {
'State' => 'new',
},
'order::direction' => 'up',
}
)
end
end