1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 07:08:09 +01:00

[ticket/8610] Use css selector instead of xPath

PHPBB3-8610
This commit is contained in:
Tristan Darricau 2014-05-31 00:29:42 +02:00
parent 63c62f86ee
commit 7c4bd8cc76

View File

@ -594,7 +594,8 @@ class phpbb_functional_visibility_softdelete_test extends phpbb_functional_test_
$this->add_lang('viewtopic');
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Soft Delete Topic #2']}&sid={$this->sid}");
$bookmark_tag = $crawler->filterXPath('//div/ul/li/a[contains(., "Bookmark topic")]');
$bookmark_tag = $crawler->filter('a.bookmark-link');
$this->assertContainsLang('BOOKMARK_TOPIC', $bookmark_tag->text());
$bookmark_link = $bookmark_tag->attr('href');
$crawler_bookmark = self::request('GET', $bookmark_link);
$this->assertContainsLang('BOOKMARK_ADDED', $crawler_bookmark->text());