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 20, 2016
1 parent fcf4ba1 commit ddd632e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Histórico de Alterações
1.1.5 (unreleased)
^^^^^^^^^^^^^^^^^^

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

* Upgrade step que instala profile do brasil.gov.agenda se não estiver
instalado e atualiza os estilos do collective.cover(closes `#154`_).
[idgserpro]
Expand Down Expand Up @@ -458,3 +461,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
16 changes: 16 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,22 @@ ${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 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
Page Should Contain Item created

*** Test Cases ***

Criar nova capa
Expand Down

0 comments on commit ddd632e

Please sign in to comment.