Skip to content
Snippets Groups Projects
Commit 88a00ed9 authored by Mr. Evoltech's avatar Mr. Evoltech
Browse files

Aadding test cases for 03_disable_latest_and_active_lists.patch

parent 65584fb8
Branches
Tags
No related merge requests found
...@@ -70,6 +70,30 @@ describe "wwsympa" do ...@@ -70,6 +70,30 @@ describe "wwsympa" do
page.parser.css('#ErrorMsg').to_s.must_match /INTERNAL SERVER ERROR/ page.parser.css('#ErrorMsg').to_s.must_match /INTERNAL SERVER ERROR/
end end
# 03_disable_latest_and_active_lists.patch
# rss requests to active_lists and latest_lists crash wwsympa.
# First test /active_lists?for=1&count=1, it should return an
# empty list, even after the list above is added
it "004 can not list active lists" do
sts = SympaTestSuite.new
sts.login
page = sts.browser.get(sts.url + '/active_lists?for=1&count=1')
page.parser.css('table.listOfItems').to_s.wont_match /#{$list}/
end
# 03_disable_latest_and_active_lists.patch
# rss requests to active_lists and latest_lists crash wwsympa.
# Second test /latest_lists?for=1&count=1, it should return an
# empty list, even after the list above is added
it "005 can not list latest lists" do
sts = SympaTestSuite.new
sts.login
page = sts.browser.get(sts.url + '/latest_lists?for=1&count=1')
page.parser.css('table.listOfItems').to_s.wont_match /#{$list}/
end
# This is for issue #1187: https://labs.riseup.net/code/issues/1187 # This is for issue #1187: https://labs.riseup.net/code/issues/1187
# it "can not add name on the user preferences page" do # it "can not add name on the user preferences page" do
# page = @browser.post(@url, { # page = @browser.post(@url, {
......
  • Author Owner

    Screenshot_from_2016-08-12_11_36_23

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment