kapilt / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

Bug at "test_functional_browser_cart.txt" #252

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Testing test_functional_browser_cart.txt gives following error.

$ ./bin/instance test -s Products.PloneGetPaid -t
test_functional_browser_cart_txt

line 88, in test_functional_browser_cart.txt
Failed example:
    browser.getLink('Add to Cart').click()
Exception raised:
    Traceback (most recent call last):
      File
"/home/taito/Development/homepage/parts/zope2/lib/python/zope/testing/doctest.py
",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_browser_cart.txt[55]>", line 1, in ?
        browser.getLink('Add to Cart').click()
      File
"/home/taito/Development/homepage/parts/zope2/lib/python/zope/testbrowser/browse
r.py",
line 297, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/home/taito/Development/homepage/parts/zope2/lib/python/mechanize/_mechanize.py
",
line 499, in find_link
        raise LinkNotFoundError()
    LinkNotFoundError

Need to fix line 88

#    >>> browser.getLink('Add to Cart').click()
    >>> browser.getControl('Add to Cart').click()

Original issue reported on code.google.com by taito.ho...@gmail.com on 13 Apr 2009 at 12:16

GoogleCodeExporter commented 8 years ago
in version = 0.8.6dev it s fixed

Original comment by danielle...@gmail.com on 17 Apr 2010 at 1:56