Watir tests for Hide Changes and for All Pages
This commit is contained in:
parent
af50549e3e
commit
895dd41263
|
@ -142,6 +142,27 @@ class E2EInstikiTest < Test::Unit::TestCase
|
|||
|
||||
assert_match /Showing changes from revision #1 to #2: Added \| Removed/, ie.text
|
||||
assert_match /Test Edit Page, revision 22, rolled back/, ie.text
|
||||
|
||||
ie.link(:text, 'Hide changes').click
|
||||
|
||||
assert_match /Test Edit Page, revision 2, rolled back/, ie.text
|
||||
end
|
||||
|
||||
def test_0070_all_pages
|
||||
ie.link(:text, 'All Pages').click
|
||||
page_links = ie.links.map { |l| l.text }
|
||||
expected_page_links = ['Another Wiki Page', 'Home Page', 'Test Edit Page', 'Test Edit Page']
|
||||
assert_equal expected_page_links, page_links[-4..-1]
|
||||
# and before that, we have the tail of the main menu
|
||||
assert_equal 'Export', page_links[-5]
|
||||
end
|
||||
|
||||
def test_0070_all_pages
|
||||
ie.link(:text, 'All Pages').click
|
||||
page_links = ie.links.map { |l| l.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
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue