Removed a duplicate definition of the same test case; added an assertion to All Pages test
This commit is contained in:
parent
895dd41263
commit
5ef861f779
|
@ -155,14 +155,10 @@ class E2EInstikiTest < Test::Unit::TestCase
|
||||||
assert_equal expected_page_links, page_links[-4..-1]
|
assert_equal expected_page_links, page_links[-4..-1]
|
||||||
# and before that, we have the tail of the main menu
|
# and before that, we have the tail of the main menu
|
||||||
assert_equal 'Export', page_links[-5]
|
assert_equal 'Export', page_links[-5]
|
||||||
end
|
|
||||||
|
|
||||||
def test_0070_all_pages
|
# Test Edit Page link is repeated twice, because it is an orphan
|
||||||
ie.link(:text, 'All Pages').click
|
assert_match Regexp.new('Test Edit Page.*Orphaned Pages.*Test Edit Page', Regexp::MULTILINE),
|
||||||
page_links = ie.links.map { |l| l.text }
|
ie.text
|
||||||
expected_page_links = ['Another Wiki Page', 'Home Page', 'Test Edit Page', 'Test Edit Page']
|
|
||||||
assert_equal expected_page_links, page_links[-4..-1]
|
|
||||||
assert_equal 'Export', page_links[-5]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue