Skip to content
Snippets Groups Projects
Commit b4f9eb07 authored by llaffont's avatar llaffont
Browse files

OPAC Mobile: correction recherche qui prends le dernier résultat à chaque fois #9296

parent c9891709
No related merge requests found
......@@ -47,8 +47,8 @@ class ZendAfi_View_Helper_Telephone_Tags_ToolBar extends ZendAfi_View_Helper_Bas
$html .= '</div>';
$html .= '<div class="ui-bar ui-bar-c search-bar" style="display:none;padding:0;">';
$html .= sprintf('<form method="post" action="%s">', $this->view->url(array('controller' => 'recherche',
'action' => 'simple')));
$html .= sprintf('<form method="post" data-ajax="false" action="%s">', $this->view->url(['controller' => 'recherche',
'action' => 'simple'], null, true));
$html .= sprintf('<input class="navbar-search-input" data-mini="true" type="search" name="expressionRecherche" x-webkit-speech="x-webkit-speech">');
$html .= '</form>';
......
......@@ -40,6 +40,18 @@ class Telephone_RechercheControllerSimpleSeveralInexistingWordsActionTest extend
public function pageShouldDisplayAucunResultat() {
$this->assertXPathContentContains('//h2', 'Aucun résultat trouvé');
}
/** @test */
public function formInSearchBarShouldNotHaveCurrentExpressionInAction() {
$this->assertNotXPath('//form[contains(@action, "simple/expressionRecherche/zzriuezz")]');
}
/** @test */
public function formInSearchBarShouldNotBeDataAjax() {
$this->assertXPath('//form[contains(@action, "recherche/simple")][@data-ajax="false"]');
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment