d9322e60cd813bafa51af6357cdedc832987f453
[arvados.git] / apps / workbench / test / integration / folders_test.rb
1 require 'integration_helper'
2 require 'selenium-webdriver'
3 require 'headless'
4
5 class FoldersTest < ActionDispatch::IntegrationTest
6
7   test 'Find a folder and edit its description' do
8     Capybara.current_driver = Capybara.javascript_driver
9     visit page_with_token 'active', '/'
10     find('nav a', text: 'Folders').click
11     find('tr', text: 'A Folder').
12       find('a,button', text: 'Show').
13       click
14     within('.panel', text: api_fixture('groups')['afolder']['name']) do
15       find('span', text: api_fixture('groups')['afolder']['name']).click
16       find('.glyphicon-ok').click
17       find('.btn', text: 'Edit description').click
18       find('.editable-input textarea').set('I just edited this.')
19       find('.editable-submit').click
20     end
21     #find('.panel', text: 'I just edited this.')
22   end
23
24 end