plone / plone.app.robotframework

Provides Robot Framework compatible resources and tools for writing functional Selenium tests (including acceptance tests) for Plone CMS and its add-ons.
https://docs.plone.org/external/plone.app.robotframework/docs/source/index.html
11 stars 17 forks source link

"Create content" fails when creating a New Item on a site which uses archetypes default content types and other dexterity content types #41

Closed gotcha closed 9 years ago

gotcha commented 9 years ago

Checking for HAS_DEXTERITY is over simplified, we should check if the types of the default content types are Products.ATContentTypes or plone.app.contenttypes

Because the check is failing, when trying to create an image for News Item, we use the wrong code path.

And we get an AssertionError: 'NamedImage' object has no attribute 'seek'.

datakurre commented 9 years ago

Agreed. Actually, we should check FTI type for the given portal_type.

Godefroid Chapelle notifications@github.com kirjoitti 6.7.2015 kello 18.16:

checking for HAS_DEXTERITY is over simplified, we should check if the types of the default content types are Products.ATContentTypes or plone.app.contenttypes

— Reply to this email directly or view it on GitHub.