aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-18 23:53:40 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-18 23:53:40 +0100
commitae221602438b832968d307eba8baea4ce6358439 (patch)
treef98c3fe1a16ea6c5f7920b193d10695c2bdab323 /tests
parentb7deef46ac2f49b310d05d94067607e8f19c0817 (diff)
downloadforums-ae221602438b832968d307eba8baea4ce6358439.tar
forums-ae221602438b832968d307eba8baea4ce6358439.tar.gz
forums-ae221602438b832968d307eba8baea4ce6358439.tar.bz2
forums-ae221602438b832968d307eba8baea4ce6358439.tar.xz
forums-ae221602438b832968d307eba8baea4ce6358439.zip
[ticket/14488] Delete cookies to get correct session ID during login
PHPBB3-14488
Diffstat (limited to 'tests')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index 9bb89781a1..b5ac3a576b 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -424,6 +424,8 @@ class phpbb_ui_test_case extends phpbb_test_case
$this->visit('ucp.php');
$this->assertContains($this->lang('LOGIN_EXPLAIN_UCP'), self::$webDriver->getPageSource());
+ self::$webDriver->manage()->deleteAllCookies();
+
self::find_element('cssSelector', 'input[name=username]')->sendKeys($username);
self::find_element('cssSelector', 'input[name=password]')->sendKeys($username . $username);
self::find_element('cssSelector', 'input[name=login]')->click();