Commit 878c2f75 authored by Laurent's avatar Laurent
Browse files

dev #13615 test fix

parent 4a6ddb54
......@@ -115,21 +115,25 @@ class AbonneControllerLoansHistorySuccessfulTest extends AbonneControllerLoansH
$this->assertXPathContentContains('//table', 'Cedric :Chaud et froid Vol 6');
}
/** @test */
public function loanNoticeShouldBeLinked() {
$this->assertXPath('//td/a[contains(@href, "/recherche/viewnotice/id/1456/retour_abonne/prets")]');
$this->assertXPath('//td/a[contains(@href, "/recherche/viewnotice/id/1456/retour_abonne/loans-history")]');
}
/** @test */
public function loanWithoutReturnDateShouldNotBeDisplayedInHistory() {
$this->assertNotXPathContentContains('//table[contains(@class, "loans-history")]', 'Le secret du pressoir');
}
/** @test */
public function loanWithoutNoticeShouldNotBeLink() {
$this->assertXPath('//td[not(a)][contains(text(), "L\'hôpital")]');
}
/** @test */
public function HopitalShouldBeFirstElement() {
$this->assertXPathContentContains('//tbody/tr[1]', 'L\'hôpital');
......@@ -158,6 +162,7 @@ class AbonneControllerLoansHistoryWithoutHistoryTest extends AbonneControllerLoa
$this->assertXPathContentContains('//h1', 'Historique de prêts');
}
/** @test */
public function loansTitleShouldNotBeDisplay() {
$this->assertNotXPathContentContains('//table', 'Cedric :Chaud et froid Vol 6');
......
......@@ -353,7 +353,7 @@ class AbonneControllerPretsListThreePretsTest extends AbonneControllerPretsListT
/** @test */
public function aliceAuthorShouldBeQuinRoseAndFetchFromDB() {
$this->assertXPathContentContains('//tbody/tr[1]//td//a[@href="/recherche/simple/facette/A565/retour_abonne/prets"]', 'QuinRose');
$this->assertXPathContentContains('//tbody/tr[1]//td//a[@href="/recherche/simple/code_rebond/A565/retour_abonne/prets"]', 'QuinRose');
}
......@@ -629,7 +629,7 @@ class AbonneControllerPretsListReservationTest extends AbonneControllerPretsList
/** @test */
public function authorShouldBeRowlingAndLinkSearch() {
$this->assertXPathContentContains('//tbody/tr[1]//td//a[@href="/recherche/simple/facette/A456/retour_abonne/reservations"]',
$this->assertXPathContentContains('//tbody/tr[1]//td//a[@href="/recherche/simple/code_rebond/A456/retour_abonne/reservations"]',
'Joanne Kathleen Rowling');
}
......
Markdown is supported
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