spec: fix fragile collaboration spec for chrome

Test Plan:
- Tests pass
- Code review

Change-Id: I6df6e8815d35d83dd940a18f71761449dddfb7e7
Reviewed-on: https://gerrit.instructure.com/78870
Tested-by: Jenkins
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
This commit is contained in:
MFairbourn 2016-05-05 11:17:34 -06:00 committed by Matt Fairbourn
parent 4e7e4f2339
commit 405756ae04
1 changed files with 7 additions and 5 deletions

View File

@ -318,11 +318,13 @@ describe "groups" do
replace_content(find('#collaboration_description'), "c1 description")
fj('.available-users li:contains("1, Test Student") .icon-user').click
fj('.btn:contains("Start Collaborating")').click
wait_for_ajaximations
# Reload page and new collaboration will be displayed on main window
refresh_page
expect(fj('.collaboration .title:contains("c1")')).to be_present
expect(fj('.collaboration .description:contains("c1 description")')).to be_present
keep_trying_until do
# verifies collaboration will be displayed on main window
tab1 = driver.window_handles.first
driver.switch_to.window(tab1)
expect(fj('.collaboration .title:contains("c1")')).to be_present
expect(fj('.collaboration .description:contains("c1 description")')).to be_present
end
end
it 'can invite people within your group', priority: "1", test_id: 273642 do