2014-12-04 18:20:15 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class keyboardShortcutTest extends minifluxTestCase
|
|
|
|
{
|
|
|
|
const DEFAULT_COUNTER_PAGE = 8;
|
2014-11-15 14:32:31 +01:00
|
|
|
const DEFAULT_COUNTER_UNREAD = 6;
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-03-08 13:18:02 +01:00
|
|
|
protected function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
}
|
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
public function setUpPage()
|
|
|
|
{
|
|
|
|
$url = $this->getURLPageFirstFeed();
|
2015-01-04 22:25:28 +01:00
|
|
|
$this->doLoginIfRequired($url);
|
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->basePageHeading = $this->getBasePageHeading();
|
|
|
|
$this->expectedPageUrl = $url;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getExpectedPageTitle()
|
|
|
|
{
|
|
|
|
return "($this->expectedCounterPage) $this->basePageHeading";
|
|
|
|
}
|
|
|
|
|
2015-01-15 02:01:54 +01:00
|
|
|
public function testNoAlertShown()
|
|
|
|
{
|
|
|
|
$alertBox = $this->getAlertBox();
|
|
|
|
$this->assertEmpty($alertBox, 'Unexpected alert box found');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testNextItemShortcutA()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys($this->getShortcutNextItemA());
|
|
|
|
|
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
$secondIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[1]);
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->assertTrue($firstIsNotCurrentArticle, 'The first Article is still the current Article');
|
|
|
|
$this->assertTrue($secondIsCurrentArticle, 'The second Article is not the current Article');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testNextItemShortcutB()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys($this->getShortcutNextItemB());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
$secondIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[1]);
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->assertTrue($firstIsNotCurrentArticle, 'The first Article is still the current Article');
|
|
|
|
$this->assertTrue($secondIsCurrentArticle, 'The second Article is not the current Article');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2015-01-15 02:01:54 +01:00
|
|
|
public function testNextItemShortcutC()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
|
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys($this->getShortcutNextItemC());
|
|
|
|
|
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
$secondIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[1]);
|
|
|
|
|
|
|
|
$this->assertTrue($firstIsNotCurrentArticle, 'The first Article is still the current Article');
|
|
|
|
$this->assertTrue($secondIsCurrentArticle, 'The second Article is not the current Article');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testPreviousItemA()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->setArticleAsCurrentArticle($articles[1]);
|
|
|
|
$this->keys($this->getShortcutPreviousItemA());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$firstIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[0]);
|
|
|
|
$secondIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[1]);
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->assertTrue($firstIsCurrentArticle, 'The first article is not the current article');
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->assertTrue($secondIsNotCurrentArticle, 'The second Article is still the current Article');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testPreviousItemB()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->setArticleAsCurrentArticle($articles[1]);
|
|
|
|
$this->keys($this->getShortcutPreviousItemB());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$firstIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[0]);
|
|
|
|
$secondIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[1]);
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->assertTrue($firstIsCurrentArticle, 'The first article is not the current article');
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->assertTrue($secondIsNotCurrentArticle, 'The second Article is still the current Article');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2015-01-15 02:01:54 +01:00
|
|
|
public function testPreviousItemC()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
|
|
|
|
$this->setArticleAsCurrentArticle($articles[1]);
|
|
|
|
$this->keys($this->getShortcutPreviousItemC());
|
|
|
|
|
|
|
|
$firstIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[0]);
|
|
|
|
$secondIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[1]);
|
|
|
|
|
|
|
|
$this->assertTrue($firstIsCurrentArticle, 'The first article is not the current article');
|
|
|
|
$this->assertTrue($secondIsNotCurrentArticle, 'The second Article is still the current Article');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testNextStopsAtLastArticle()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
$lastIndex = count($articles) - 1;
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->setArticleAsCurrentArticle($articles[$lastIndex]);
|
|
|
|
$this->keys($this->getShortcutNextItemA());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
$lastIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[$lastIndex]);
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->assertTrue($firstIsNotCurrentArticle, 'The first Article is still the current Article');
|
|
|
|
$this->assertTrue($lastIsCurrentArticle, 'The last Article is not the current Article');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testPreviousStopsAtFirstArticle()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
$lastIndex = count($articles) - 1;
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys($this->getShortcutPreviousItemA());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$lastIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[$lastIndex]);
|
|
|
|
$firstIsCurrentArticle = $this->waitForArticleIsCurrentArticle($articles[0]);
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->assertTrue($lastIsNotCurrentArticle, 'The last Article is still the current Article');
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->assertTrue($firstIsCurrentArticle, 'The first article is not the current article');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group ie_unsupported
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2015-01-15 02:01:54 +01:00
|
|
|
public function testSHIFTModifierIsDisabled()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
|
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::SHIFT.$this->getShortcutNextItemC());
|
|
|
|
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::SHIFT);
|
|
|
|
|
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
|
|
|
|
$this->assertFalse($firstIsNotCurrentArticle, 'The first article is not the current article');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group ie_unsupported
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2015-01-15 02:01:54 +01:00
|
|
|
public function testALTModifierIsDisabled()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
|
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::ALT.$this->getShortcutNextItemB());
|
|
|
|
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::ALT);
|
|
|
|
|
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
|
|
|
|
$this->assertFalse($firstIsNotCurrentArticle, 'The first article is not the current article');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group ie_unsupported
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2015-01-15 02:01:54 +01:00
|
|
|
public function testCTRLModifierIsDisabled()
|
|
|
|
{
|
|
|
|
$articles = $this->getArticles();
|
|
|
|
|
|
|
|
$this->setArticleAsCurrentArticle($articles[0]);
|
|
|
|
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::CONTROL.$this->getShortcutNextItemB());
|
|
|
|
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::CONTROL);
|
|
|
|
|
|
|
|
$firstIsNotCurrentArticle = $this->waitForArticleIsNotCurrentArticle($articles[0]);
|
|
|
|
|
|
|
|
$this->assertFalse($firstIsNotCurrentArticle, 'The first article is not the current article');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = static::DEFAULT_COUNTER_PAGE;
|
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testShortcutsOnInputFiledAreDisabled()
|
|
|
|
{
|
|
|
|
$url = $this->getURLPagePreferences();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->url($url);
|
2015-01-15 02:01:54 +01:00
|
|
|
|
|
|
|
$this->byId('form-username')->click();
|
|
|
|
$this->keys($this->getShortcutGoToUnread());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedPageUrl = $url;
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2016-04-18 01:44:45 +02:00
|
|
|
$this->ignorePageTitle = true;
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testGoToBookmarks()
|
|
|
|
{
|
|
|
|
$this->sendKeysAndWaitForPageLoaded('gb');
|
|
|
|
|
|
|
|
$this->expectedCounterPage = '6';
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedPageUrl = $this->getURLPageBookmarks();
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2016-04-18 01:44:45 +02:00
|
|
|
$this->ignorePageTitle = true;
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testGoToHistory()
|
|
|
|
{
|
|
|
|
$this->sendKeysAndWaitForPageLoaded('gh');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = '6';
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedPageUrl = $this->getURLPageHistory();
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2016-04-18 01:44:45 +02:00
|
|
|
$this->ignorePageTitle = true;
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testGoToUnread()
|
|
|
|
{
|
|
|
|
$this->sendKeysAndWaitForPageLoaded($this->getShortcutGoToUnread());
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedCounterPage = '6';
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedPageUrl = $this->getURLPageUnread();
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2016-04-18 01:44:45 +02:00
|
|
|
$this->ignorePageTitle = true;
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testGoToSubscriptions()
|
|
|
|
{
|
|
|
|
$this->sendKeysAndWaitForPageLoaded('gs');
|
|
|
|
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedPageUrl = PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_BASEURL.'?action=feeds';
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2016-04-18 01:44:45 +02:00
|
|
|
$this->ignorePageTitle = true;
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2015-04-05 22:27:25 +02:00
|
|
|
/**
|
|
|
|
* @group moz_unsupported
|
|
|
|
*/
|
2014-12-04 18:20:15 +01:00
|
|
|
public function testGoToPreferences()
|
|
|
|
{
|
|
|
|
$this->sendKeysAndWaitForPageLoaded('gp');
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2014-11-15 14:32:31 +01:00
|
|
|
$this->expectedCounterUnread = static::DEFAULT_COUNTER_UNREAD;
|
2014-12-04 18:20:15 +01:00
|
|
|
$this->expectedPageUrl = $this->getURLPagePreferences();
|
2015-01-15 02:01:54 +01:00
|
|
|
$this->expectedDataSet = static::$databaseTester->getDataSet();
|
2015-01-04 22:25:28 +01:00
|
|
|
|
2016-04-18 01:44:45 +02:00
|
|
|
$this->ignorePageTitle = true;
|
2014-12-04 18:20:15 +01:00
|
|
|
}
|
|
|
|
}
|