mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[ticket/8610] Use css selector instead of xPath
PHPBB3-8610
This commit is contained in:
parent
63c62f86ee
commit
7c4bd8cc76
1 changed files with 2 additions and 1 deletions
|
@ -594,7 +594,8 @@ class phpbb_functional_visibility_softdelete_test extends phpbb_functional_test_
|
||||||
$this->add_lang('viewtopic');
|
$this->add_lang('viewtopic');
|
||||||
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Soft Delete Topic #2']}&sid={$this->sid}");
|
$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');
|
$bookmark_link = $bookmark_tag->attr('href');
|
||||||
$crawler_bookmark = self::request('GET', $bookmark_link);
|
$crawler_bookmark = self::request('GET', $bookmark_link);
|
||||||
$this->assertContainsLang('BOOKMARK_ADDED', $crawler_bookmark->text());
|
$this->assertContainsLang('BOOKMARK_ADDED', $crawler_bookmark->text());
|
||||||
|
|
Loading…
Add table
Reference in a new issue