mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-04 08:08:12 +01:00
PHPUnit seems to have emptied the webdriver between every test, which causes curl errors. A new webdriver instance will now be created for every test file. This does not cause a lot of overhead for ui tests. PHPBB3-14947
27 lines
647 B
PHP
27 lines
647 B
PHP
<?php
|
|
/**
|
|
*
|
|
* This file is part of the phpBB Forum Software package.
|
|
*
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
*
|
|
* For full copyright and license information, please see
|
|
* the docs/CREDITS.txt file.
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* @group ui
|
|
*/
|
|
class quick_links_test extends phpbb_ui_test_case
|
|
{
|
|
public function test_quick_links()
|
|
{
|
|
$this->visit('index.php');
|
|
$this->assertEmpty($this->find_element('className', 'dropdown')->getText());
|
|
$this->find_element('className', 'dropdown-toggle')->click();
|
|
$this->assertNotNull($this->find_element('className', 'dropdown')->getText());
|
|
}
|
|
}
|