spec: Add specs and match test ids for group files access
Test Plan: - passes Jenkins Change-Id: I8f5f775dc982c980cac0825620c0ffe26c179bd6 Reviewed-on: https://gerrit.instructure.com/98468 Tested-by: Jenkins Reviewed-by: Benjamin Christian Nelson <bcnelson@instructure.com> Product-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com> QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
This commit is contained in:
parent
61d8bdd9f7
commit
8276039026
|
@ -300,10 +300,18 @@ describe "groups" do
|
|||
move_file_to_folder('example.pdf','destination_folder')
|
||||
end
|
||||
|
||||
it "should hide the publish cloud" do
|
||||
it "should hide the publish cloud", priority: "1", test_id: 273628 do
|
||||
add_test_files
|
||||
get files_page
|
||||
expect(f('#content')).to_not contain_css('.btn-link.published-status')
|
||||
expect(f('#content')).not_to contain_css('.btn-link.published-status')
|
||||
end
|
||||
|
||||
it "does not allow group members to restrict access to a file", priority: "1", test_id: 304672 do
|
||||
add_test_files
|
||||
get files_page
|
||||
f('.ef-item-row .ef-date-created-col').click
|
||||
expect(f('.ef-header')).to contain_css('.ef-header__secondary')
|
||||
expect(f('.ef-header__secondary')).not_to contain_css('.btn-restrict')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -213,6 +213,20 @@ describe "groups" do
|
|||
create_folder_structure
|
||||
move_folder(@inner_folder)
|
||||
end
|
||||
|
||||
it "hides the publish cloud", priority: "1", test_id: 304673 do
|
||||
add_test_files
|
||||
get files_page
|
||||
expect(f('#content')).not_to contain_css('.btn-link.published-status')
|
||||
end
|
||||
|
||||
it "does not allow teachers to restrict access to a file", priority: "1", test_id: 304900 do
|
||||
add_test_files
|
||||
get files_page
|
||||
f('.ef-item-row .ef-date-created-col').click
|
||||
expect(f('.ef-header')).to contain_css('.ef-header__secondary')
|
||||
expect(f('.ef-header__secondary')).not_to contain_css('.btn-restrict')
|
||||
end
|
||||
end
|
||||
|
||||
#-------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue