1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/14947] Create new webdriver instance for every test

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
This commit is contained in:
Marc Alexander
2017-01-02 20:39:41 +01:00
parent e88aecd3b4
commit 429225027e
3 changed files with 46 additions and 44 deletions

View File

@@ -19,8 +19,8 @@ class quick_links_test extends phpbb_ui_test_case
public function test_quick_links()
{
$this->visit('index.php');
$this->assertEmpty(self::find_element('className', 'dropdown')->getText());
self::find_element('className', 'dropdown-toggle')->click();
$this->assertNotNull(self::find_element('className', 'dropdown')->getText());
$this->assertEmpty($this->find_element('className', 'dropdown')->getText());
$this->find_element('className', 'dropdown-toggle')->click();
$this->assertNotNull($this->find_element('className', 'dropdown')->getText());
}
}