Skip to content

Commit

Permalink
fix: correção de acesso à menu nos testes automatizados para super
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeadc committed Apr 11, 2023
1 parent a1d3ae2 commit 31188f3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ down:

# make teste=TramiteProcessoComDevolucaoTest test-functional
test-functional: $(FILE_VENDOR_FUNCIONAL)
$(CMD_COMPOSE_FUNC) run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/$(addsuffix .php,$(teste))
$(CMD_COMPOSE_FUNC) run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/$(addsuffix .php,$(teste))


test-functional-parallel: $(FILE_VENDOR_FUNCIONAL)
Expand Down
15 changes: 10 additions & 5 deletions tests_sei3/funcional/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ services:
ports:
- "1080:1080"

memcached:
image: guilhermeadc/sei3_memcached:7.2
org1-memcached:
image: processoeletronico/vagrant_super4_memcached:${ENVIRONMENT_VERSION}
ports:
- "11211:11211"
- "11211"

org2-memcached:
image: processoeletronico/vagrant_super4_memcached:${ENVIRONMENT_VERSION}
ports:
- "11211"

proxy:
image: diouxx/apache-proxy
Expand Down Expand Up @@ -106,7 +111,7 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- memcached:memcached
- org1-memcached:memcached
- smtp:smtp
- org1-database:${ORG1_DATABASE_NAME}

Expand Down Expand Up @@ -143,6 +148,6 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- memcached:memcached
- org2-memcached:memcached
- smtp:smtp
- org2-database:${ORG2_DATABASE_NAME}
16 changes: 10 additions & 6 deletions tests_sei4/funcional/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ services:
ports:
- "1080:1080"

memcached:
image: processoeletronico/vagrant_sei4_memcached:${ENVIRONMENT_VERSION}
container_name: memcached
org1-memcached:
image: processoeletronico/vagrant_super4_memcached:${ENVIRONMENT_VERSION}
ports:
- "11211:11211"
- "11211"

org2-memcached:
image: processoeletronico/vagrant_super4_memcached:${ENVIRONMENT_VERSION}
ports:
- "11211"

proxy:
image: diouxx/apache-proxy
Expand Down Expand Up @@ -165,7 +169,7 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- memcached:memcached
- org1-memcached:memcached
- smtp:smtp
- org1-database:${ORG1_DATABASE_HOST}

Expand Down Expand Up @@ -230,6 +234,6 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- memcached:memcached
- org2-memcached:memcached
- smtp:smtp
- org2-database:${ORG2_DATABASE_HOST}
3 changes: 2 additions & 1 deletion tests_super/funcional/tests/CenarioBaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ protected function validarDadosDocumento($nomeDocArvore, $dadosDocumento, $desti
protected function validarProcessosTramitados($protocolo, $deveExistir)
{
$this->frame(null);
$this->byXPath("//div[contains(@class, 'menu-hamburguer')]/button")->click();
$this->byXPath("//img[contains(@title, 'Controle de Processos')]")->click();
$this->byLinkText("Processos Tramitados Externamente")->click();
$this->assertEquals($deveExistir, $this->paginaProcessosTramitadosExternamente->contemProcesso($protocolo));
}

Expand Down

0 comments on commit 31188f3

Please sign in to comment.