- assert page.has_text? '(Repository: second_test_repo)'
- assert page.has_text? '(VirtualMachine: testvm.shell)'
+ assert page.has_text? 'VirtualMachine: testvm.shell'
+ assert page.has_text? '["test group one", "test-group-two"]'
+ end
+
+ test "unsetup active user" do
+ need_javascript
+
+ visit page_with_token('admin_trustedclient')
+
+ find('#system-menu').click
+ click_link 'Users'
+
+ # click on active user
+ find('tr', text: 'zzzzz-tpzed-xurymjxw79nv3jz').
+ find('a', text: 'Show').
+ click
+ user_url = page.current_url
+
+ # Verify that is_active is set
+ find('a,button', text: 'Attributes').click
+ assert page.has_text? 'modified_by_user_uuid'
+ page.within(:xpath, '//span[@data-name="is_active"]') do
+ assert_equal "true", text, "Expected user's is_active to be true"
+ end
+
+ # go to Admin tab
+ click_link 'Admin'
+ assert page.has_text? 'As an admin, you can deactivate and reset this user'