@@ -128,21 +128,23 @@ public function testApprovalAdminInterface() {
$this->submitForm([],'Apply to selected items');
$this->assertSession()->pageTextContains('Select one or more comments to perform the update on.');
$subject_link=$this->xpath('//table/tbody/tr/td/a[contains(@href, :href) and contains(@title, :title) and text()=:text]',[
// Test that comment listing shows the correct subject link.
$this->assertSession()->elementExists('xpath',$this->assertSession()->buildXPathQuery('//table/tbody/tr/td/a[contains(@href, :href) and contains(@title, :title) and text()=:text]',[
$subject_link=$this->xpath('//table/tbody/tr/td/a[contains(@href, :href) and contains(@title, :title) and text()=:text]',[
// Test that comment listing shows the correct subject link.
$this->assertSession()->elementExists('xpath',$this->assertSession()->buildXPathQuery('//table/tbody/tr/td/a[contains(@href, :href) and contains(@title, :title) and text()=:text]',[
@@ -214,16 +216,16 @@ public function testCommentedEntityLabel() {
$this->drupalLogin($this->adminUser);
$this->drupalGet('admin/content/comment');
$comment_author_link=$this->xpath('//table/tbody/tr[1]/td/a[contains(@href, :href) and text()=:text]',[
// Test that comment listing links to comment author.
$this->assertSession()->elementExists('xpath',$this->assertSession()->buildXPathQuery('//table/tbody/tr[1]/td/a[contains(@href, :href) and text()=:text]',[
':href'=>$this->webUser->toUrl()->toString(),
':text'=>$this->webUser->label(),
]);
$this->assertTrue(!empty($comment_author_link),'Comment listing links to comment author.');
$comment_author_link=$this->xpath('//table/tbody/tr[2]/td/a[contains(@href, :href) and text()=:text]',[
]));
$this->assertSession()->elementExists('xpath',$this->assertSession()->buildXPathQuery('//table/tbody/tr[2]/td/a[contains(@href, :href) and text()=:text]',[
':href'=>$this->webUser->toUrl()->toString(),
':text'=>$this->webUser->label(),
]);
$this->assertTrue(!empty($comment_author_link),'Comment listing links to comment author.');