1 require 'integration_helper'
2 require 'selenium-webdriver'
5 class FoldersTest < ActionDispatch::IntegrationTest
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', text: 'zzzzz-').
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('textarea').set('I just edited this.')
19 find('.glyphicon-ok').click
21 find('.panel', text: 'I just edited this.')