Browse Source

Test flux from list to detail on crud

pull/6/head
Marcio Mazza 10 years ago
parent
commit
5fc20ed58b
  1. 11
      sapl/test_crud.py

11
sapl/test_crud.py

@ -230,13 +230,22 @@ def test_flux_list_paginate_detail(
assert paginator.text.strip().split() == page_list assert paginator.text.strip().split() == page_list
assert_at_page(res, 1) assert_at_page(res, 1)
res_detail = res.click('nome 1')
assert_on_detail_page(res_detail, 'nome 1')
if len(ranges) > 1: if len(ranges) > 1:
res = res.click('2', href='page=2') res = res.click('2', href='page=2')
assert_at_page(res, 2) assert_at_page(res, 2)
fist_entry_on_2nd_page = 'nome %s' % page_size
res_detail = res.click(fist_entry_on_2nd_page)
assert_on_detail_page(res_detail, fist_entry_on_2nd_page)
res = res.click('1', href='page=1') res = res.click('1', href='page=1')
assert_at_page(res, 1) assert_at_page(res, 1)
# TODO... go to detail page res_detail = res.click('nome 1')
assert_on_detail_page(res_detail, 'nome 1')
@pytest.mark.parametrize("cancel, make_invalid_submit", [ @pytest.mark.parametrize("cancel, make_invalid_submit", [

Loading…
Cancel
Save