Skip to content

Commit

Permalink
Adiciona diretiva do plone4.csrffixes no dependencies.zcml para que s…
Browse files Browse the repository at this point in the history
…eja carregado este produto quando os testes são executados
  • Loading branch information
idgserpro committed Jul 5, 2016
1 parent 96a7f03 commit 85c4e4b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Histórico de Alterações
1.1.5 (unreleased)
^^^^^^^^^^^^^^^^^^

- Nothing changed yet.
* Adiciona diretiva do plone4.csrffixes no dependencies.zcml (closes `#279`_).
[idgserpro]


1.1.4 (2016-03-14)
Expand Down Expand Up @@ -455,3 +456,4 @@ Histórico de Alterações
.. _`#241`: https://github.com/plonegovbr/brasil.gov.portal/issues/241
.. _`#242`: https://github.com/plonegovbr/brasil.gov.portal/issues/242
.. _`#275`: https://github.com/plonegovbr/brasil.gov.portal/issues/275
.. _`#279`: https://github.com/plonegovbr/brasil.gov.portal/issues/279
12 changes: 0 additions & 12 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ parts +=
rebuild_i18n-sh
precompile

[test]
environment = testenv

[testenv]
PLONE_CSRF_DISABLED = true

[test]
environment = testenv

[testenv]
PLONE_CSRF_DISABLED = true

[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/src/brasil/gov/portal
Expand Down
1 change: 1 addition & 0 deletions src/brasil/gov/portal/dependencies.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<include package="collective.polls" />
<include package="collective.upload" />
<include package="plone.app.contenttypes" />
<include package="plone4.csrffixes" />
<include package="Products.CMFPlone" />
<include package="Products.Doormat" />
<include package="Products.PloneFormGen" />
Expand Down
17 changes: 17 additions & 0 deletions src/brasil/gov/portal/tests/robot/test_capa.robot
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ ${banner_tile_location} 'collective.cover.banner'
${tile_selector} div.tile-container div.tile
${document_selector} .ui-draggable .contenttype-document

*** Keywords ***
# Metodo retirado do teste cover.robot do collective.cover para sobrescrever a chamada
# deste metodo aqui no test_capa.robot, esta customização é necessária pois temos que inserir
# Sleep 4s para que o teste execute sem erros no travis
Create Cover
[arguments] ${title} ${description} ${layout}=Empty layout

Click Add Cover
Sleep 2s Wait for Item created to load
Input Text css=${title_selector} ${title}
Input Text css=${description_selector} ${description}
Select From List css=${layout_selector} ${layout}
Sleep 2s Wait for Item created to load
Click Button Save
Sleep 4s Wait for Item created to load
Page Should Contain Item created

*** Test Cases ***

Criar nova capa
Expand Down

0 comments on commit 85c4e4b

Please sign in to comment.