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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user