spec: add testRail ids

Change-Id: Icb22c93fc1ef3fe08aa5032b7509d8698464d914
Reviewed-on: https://gerrit.instructure.com/142804
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Product-Review: KC Naegle <knaegle@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
This commit is contained in:
KC Naegle 2018-03-06 16:13:32 -07:00
parent 497fe4d5ea
commit 1c8938c05d
2 changed files with 14 additions and 14 deletions

View File

@ -77,24 +77,24 @@ describe "announcements index v2" do
AnnouncementIndex.visit(@course)
end
it "announcements can be filtered" do
it "announcements can be filtered", test_id: 3469716, priority: "1" do
AnnouncementIndex.select_filter("Unread")
expect(AnnouncementIndex.announcement(announcement1_title)).to be_displayed
expect(f('#content')).not_to contain_jqcss(AnnouncementIndex.announcement_title_css(announcement2_title))
end
it "search by title works correctly" do
it "search by title works correctly", test_id: 3469717, priority: "1" do
AnnouncementIndex.enter_search("Free food!")
expect(AnnouncementIndex.announcement(announcement1_title)).to be_displayed
expect(f('#content')).not_to contain_jqcss(AnnouncementIndex.announcement_title_css(announcement2_title))
end
it "an announcement can be locked for commenting" do
it "an announcement can be locked for commenting", test_id: 3469718, priority: "1" do
AnnouncementIndex.click_lock_menu(announcement1_title)
expect(Announcement.where(title: announcement1_title).first.locked).to be true
end
it 'multiple announcements can be locked for commenting' do
it 'multiple announcements can be locked for commenting', test_id: 3469719, priority: "1" do
AnnouncementIndex.check_announcement(announcement1_title)
AnnouncementIndex.check_announcement(announcement2_title)
AnnouncementIndex.toggle_lock
@ -102,14 +102,14 @@ describe "announcements index v2" do
expect(Announcement.where(title: announcement2_title).first.locked).to be true
end
it 'an announcement can be deleted' do
it 'an announcement can be deleted', test_id: 3469720, priority: "1" do
AnnouncementIndex.click_delete_menu(announcement1_title)
AnnouncementIndex.click_confirm_delete
expect(f('#content')).not_to contain_jqcss(AnnouncementIndex.announcement_title_css(announcement1_title))
expect(Announcement.where(title: announcement1_title).first.workflow_state).to eq 'deleted'
end
it 'multiple announcements can be deleted' do
it 'multiple announcements can be deleted', test_id: 3469721, priority: "1" do
AnnouncementIndex.check_announcement(announcement1_title)
AnnouncementIndex.check_announcement(announcement2_title)
AnnouncementIndex.click_delete
@ -120,34 +120,34 @@ describe "announcements index v2" do
expect(Announcement.where(title: announcement2_title).first.workflow_state).to eq 'deleted'
end
it 'clicking the Add Announcement button redirects to new announcement page' do
it 'clicking the Add Announcement button redirects to new announcement page', test_id: 3469722, priority: "1" do
expect_new_page_load { AnnouncementIndex.click_add_announcement }
expect(driver.current_url).to include(AnnouncementIndex.new_announcement_url)
end
it 'clicking the announcement goes to the discussion page for that announcement' do
it 'clicking the announcement goes to the discussion page for that announcement', test_id: 3469726, priority: "1" do
expect_new_page_load { AnnouncementIndex.click_on_announcement(announcement1_title) }
expect(driver.current_url).to include(AnnouncementIndex.individual_announcement_url(@announcement1))
end
it 'pill on announcement displays correct number of unread replies' do
it 'pill on announcement displays correct number of unread replies', test_id: 3469727, priority: "1" do
expect(AnnouncementIndex.announcement_unread_number(announcement1_title)).to eq "2"
end
it 'RSS feed info displayed' do
it 'RSS feed info displayed', test_id: 3469723, priority: "1" do
AnnouncementIndex.open_external_feeds
ExternalFeedPage.click_rss_feed_link
expect(driver.current_url).to include('.atom')
end
it 'an external feed can be added' do
it 'an external feed can be added', test_id: 3469724, priority: "1" do
AnnouncementIndex.open_external_feeds
ExternalFeedPage.add_external_feed('http://someurl', 'full')
ExternalFeedPage.add_external_feed('http://otherurl', 'full')
expect(ExternalFeed.all.length).to eq 2
end
it 'an external feed can be deleted' do
it 'an external feed can be deleted', test_id: 3469725, priority: "1" do
AnnouncementIndex.open_external_feeds
ExternalFeedPage.add_external_feed('http://someurl', 'full')
ExternalFeedPage.add_external_feed('http://otherurl', 'full')

View File

@ -33,7 +33,7 @@ describe "announcements" do
user_session(@teacher)
end
it "should allow saving of section announcement" do
it "should allow saving of section announcement", test_id:3469728, priority: "1" do
@course.root_account.enable_feature!(:section_specific_announcements)
@course.course_sections.create!(name: "Section 1")
@course.course_sections.create!(name: "Section 2")
@ -46,7 +46,7 @@ describe "announcements" do
individual_announcement_url(Announcement.last))
end
it "should not allow empty sections" do
it "should not allow empty sections", test_id:3469730, priority: "1" do
@course.root_account.enable_feature!(:section_specific_announcements)
@course.course_sections.create!(name: "Section 1")
@course.course_sections.create!(name: "Section 2")