Skip to content

Commit

Permalink
chore: alterar metodo de acesso ao menu nas paginas TipoDocumento,Tip…
Browse files Browse the repository at this point in the history
…oProcesso e Unidades para o sei oficial
  • Loading branch information
marvdias committed Apr 3, 2024
1 parent 773244f commit ac9e964
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions tests_super/funcional/src/paginas/PaginaTipoDocumento.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public function __construct($test)

public function navegarTipoDocumento()
{
$this->test->byId("txtInfraPesquisarMenu")->value("Tipos de Documento");
$this->test->byXPath("//span[text()='Tipos de Documento']")->click();
$this->test->byXPath("//a[@link='serie_listar']")->click();
$this->test->frame(null);
$xpath = "//a[contains(@href, 'acao=serie_listar')]";
$link = $this->test->byXPath($xpath);
$url = $link->attribute('href');
$this->test->url($url);
}

public function pesquisarTipoDocumento($tipoDocumento)
Expand Down
8 changes: 5 additions & 3 deletions tests_super/funcional/src/paginas/PaginaTipoProcesso.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public function __construct($test)

public function navegarTipoProcesso()
{
$this->test->byId("txtInfraPesquisarMenu")->value("Tipos de Processo");
$this->test->byXPath("//span[text()='Tipos de Processo']")->click();
$this->test->byXPath("//a[@link='tipo_procedimento_listar']")->click();
$this->test->frame(null);
$xpath = "//a[contains(@href, 'acao=tipo_procedimento_listar')]";
$link = $this->test->byXPath($xpath);
$url = $link->attribute('href');
$this->test->url($url);
}

public function pesquisarTipoProcesso($tipoProcesso)
Expand Down
8 changes: 5 additions & 3 deletions tests_super/funcional/src/paginas/PaginaUnidades.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public function __construct($test)

public function navegarUnidades()
{
$this->test->byId("txtInfraPesquisarMenu")->value("Unidades");
$this->test->byXPath("//span[text()='Unidades']")->click();
$this->test->byXPath("//a[@link='unidade_listar']")->click();
$this->test->frame(null);
$xpath = "//a[contains(@href, 'acao=unidade_listar')]";
$link = $this->test->byXPath($xpath);
$url = $link->attribute('href');
$this->test->url($url);
}

public function desativarUnidades()
Expand Down

0 comments on commit ac9e964

Please sign in to comment.