diff --git a/CHANGES.rst b/CHANGES.rst index 33df738e..7f5d9463 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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] @@ -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 diff --git a/buildout.cfg b/buildout.cfg index f4d9b173..589e297a 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -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 diff --git a/src/brasil/gov/portal/dependencies.zcml b/src/brasil/gov/portal/dependencies.zcml index fde5decd..5e72af4c 100644 --- a/src/brasil/gov/portal/dependencies.zcml +++ b/src/brasil/gov/portal/dependencies.zcml @@ -13,6 +13,7 @@ + diff --git a/src/brasil/gov/portal/tests/robot/test_capa.robot b/src/brasil/gov/portal/tests/robot/test_capa.robot index 548ebdb2..d0de7baf 100644 --- a/src/brasil/gov/portal/tests/robot/test_capa.robot +++ b/src/brasil/gov/portal/tests/robot/test_capa.robot @@ -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