Skip to content

Commit

Permalink
test: skip dos testes que acessavam menu removido
Browse files Browse the repository at this point in the history
  • Loading branch information
marvdias committed May 3, 2024
1 parent b08f30d commit f8ad624
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 70 deletions.
38 changes: 21 additions & 17 deletions tests_sei4/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,24 +132,28 @@ public function test_tramitar_processo_anexado_da_origem()
$this->sairSistema();
}

// public function test_verificar_envio_processo()
// {
// $orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

// $this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
// $this->visualizarProcessoTramitadosEmLote($this);
// $this->navegarProcessoEmLote(0);

// $this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
// sleep(5);
// $testCase->refresh();
// $paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
// $testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
// return true;
// }, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);
public function test_verificar_envio_processo()
{
$this->markTestIncomplete(
'Tela de confirmação de envio suprimida. Aguardando refatoração da funcionalidade do bloco para refatorar este teste.'
);

// sleep(5);
// }
$orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

$this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
$this->visualizarProcessoTramitadosEmLote($this);
$this->navegarProcessoEmLote(0);

$this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
sleep(5);
$testCase->refresh();
$paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
$testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
return true;
}, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);

sleep(5);
}

public function test_verificar_envio_tramite_em_bloco()
{
Expand Down
40 changes: 22 additions & 18 deletions tests_sei4/funcional/tests/TramiteBlocoExternoLimiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,26 +113,30 @@ public function teste_tramite_bloco_externo()
*
* @return void
*/
// public function test_verificar_envio_processo()
// {
// $orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

// $this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
// $this->visualizarProcessoTramitadosEmLote($this);
// $this->navegarProcessoEmLote(0);

// $this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
// sleep(5);
// $testCase->refresh();
// $paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
// $testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
// return true;
// }, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);
public function test_verificar_envio_processo()
{
$this->markTestIncomplete(
'Tela de confirmação de envio suprimida. Aguardando refatoração da funcionalidade do bloco para refatorar este teste.'
);

$orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

$this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
$this->visualizarProcessoTramitadosEmLote($this);
$this->navegarProcessoEmLote(0);

$this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
sleep(5);
$testCase->refresh();
$paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
$testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
return true;
}, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);

// sleep(5);
sleep(5);

// $this->sairSistema();
// }
$this->sairSistema();
}

/**
* Verificar atualização do bloco
Expand Down
38 changes: 21 additions & 17 deletions tests_super/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,28 @@ public function test_tramitar_processo_anexado_da_origem()
$this->sairSistema();
}

// public function test_verificar_envio_processo()
// {
// $orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

// $this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
// $this->visualizarProcessoTramitadosEmLote($this);
// $this->navegarProcessoEmLote(0);

// $this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
// sleep(5);
// $testCase->refresh();
// $paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
// $testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
// return true;
// }, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);
public function test_verificar_envio_processo()
{
$this->markTestIncomplete(
'Tela de confirmação de envio suprimida. Aguardando refatoração da funcionalidade do bloco para refatorar este teste.'
);

// sleep(5);
// }
$orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

$this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
$this->visualizarProcessoTramitadosEmLote($this);
$this->navegarProcessoEmLote(0);

$this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
sleep(5);
$testCase->refresh();
$paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
$testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
return true;
}, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);

sleep(5);
}

public function test_verificar_envio_tramite_em_bloco()
{
Expand Down
40 changes: 22 additions & 18 deletions tests_super/funcional/tests/TramiteBlocoExternoLimiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,30 @@ public function teste_tramite_bloco_externo()
*
* @return void
*/
// public function test_verificar_envio_processo()
// {
// $orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

// $this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
// $this->visualizarProcessoTramitadosEmLote($this);
// $this->navegarProcessoEmLote(0);

// $this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
// sleep(5);
// $testCase->refresh();
// $paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
// $testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
// return true;
// }, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);
public function test_verificar_envio_processo()
{
$this->markTestIncomplete(
'Tela de confirmação de envio suprimida. Aguardando refatoração da funcionalidade do bloco para refatorar este teste.'
);

$orgaosDiferentes = self::$remetente['URL'] != self::$destinatario['URL'];

$this->acessarSistema(self::$remetente['URL'], self::$remetente['SIGLA_UNIDADE'], self::$remetente['LOGIN'], self::$remetente['SENHA']);
$this->visualizarProcessoTramitadosEmLote($this);
$this->navegarProcessoEmLote(0);

$this->waitUntil(function ($testCase) use (&$orgaosDiferentes) {
sleep(5);
$testCase->refresh();
$paginaTramitarProcessoEmLote = new PaginaTramitarProcessoEmLote($testCase);
$testCase->assertStringContainsString(utf8_encode("Nenhum registro encontrado."), $paginaTramitarProcessoEmLote->informacaoLote());
return true;
}, PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE);

// sleep(5);
sleep(5);

// $this->sairSistema();
// }
$this->sairSistema();
}

/**
* Verificar atualização do bloco
Expand Down

0 comments on commit f8ad624

Please sign in to comment.