From 065805e485d5d438a415f1473e84142d71941b2a Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sun, 8 Mar 2015 13:18:02 +0100 Subject: [PATCH] disable shortcut tests for firefox The key property isn't properly set with selenium. --- tests/integration/keyboardShortcutsTest.php | 13 +++++++++ tests/integration/pageBookmarksTest.php | 16 +++++++++++ tests/integration/pageFirstFeedTest.php | 32 +++++++++++++++++++++ tests/integration/pageHistoryTest.php | 16 +++++++++++ tests/integration/pageUnreadTest.php | 16 +++++++++++ 5 files changed, 93 insertions(+) diff --git a/tests/integration/keyboardShortcutsTest.php b/tests/integration/keyboardShortcutsTest.php index f81bcd2..67103d3 100644 --- a/tests/integration/keyboardShortcutsTest.php +++ b/tests/integration/keyboardShortcutsTest.php @@ -5,6 +5,15 @@ class keyboardShortcutTest extends minifluxTestCase const DEFAULT_COUNTER_PAGE = 8; const DEFAULT_COUNTER_UNREAD = 6; + protected function setUp() + { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + + parent::setUp(); + } + public function setUpPage() { $url = $this->getURLPageFirstFeed(); @@ -31,6 +40,10 @@ class keyboardShortcutTest extends minifluxTestCase public function testNextItemShortcutA() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium'); + } + $articles = $this->getArticles(); $this->setArticleAsCurrentArticle($articles[0]); diff --git a/tests/integration/pageBookmarksTest.php b/tests/integration/pageBookmarksTest.php index 6599dc7..6322ca1 100644 --- a/tests/integration/pageBookmarksTest.php +++ b/tests/integration/pageBookmarksTest.php @@ -66,6 +66,10 @@ class pageBookmarksTest extends minifluxTestCase public function testMarkReadBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -96,6 +100,10 @@ class pageBookmarksTest extends minifluxTestCase public function testMarkUnreadBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -127,6 +135,10 @@ class pageBookmarksTest extends minifluxTestCase public function testUnbookmarkReadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -157,6 +169,10 @@ class pageBookmarksTest extends minifluxTestCase public function testUnbookmarkUnreadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadBookmarked(); $this->setArticleAsCurrentArticle($article); diff --git a/tests/integration/pageFirstFeedTest.php b/tests/integration/pageFirstFeedTest.php index bbdad08..fa68f20 100644 --- a/tests/integration/pageFirstFeedTest.php +++ b/tests/integration/pageFirstFeedTest.php @@ -77,6 +77,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testMarkReadNotBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -107,6 +111,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testMarkReadBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -137,6 +145,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testMarkUnreadNotBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -167,6 +179,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testMarkUnreadBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -197,6 +213,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testBookmarkReadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -227,6 +247,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testBookmarkUnreadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -257,6 +281,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testUnbookmarkReadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -287,6 +315,10 @@ class pageFirstFeedTest extends minifluxTestCase public function testUnbookmarkUnreadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadBookmarked(); $this->setArticleAsCurrentArticle($article); diff --git a/tests/integration/pageHistoryTest.php b/tests/integration/pageHistoryTest.php index 0763544..a500c7e 100644 --- a/tests/integration/pageHistoryTest.php +++ b/tests/integration/pageHistoryTest.php @@ -66,6 +66,10 @@ class pageHistoryTest extends minifluxTestCase public function testMarkUnreadNotBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -96,6 +100,10 @@ class pageHistoryTest extends minifluxTestCase public function testMarkUnreadBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -126,6 +134,10 @@ class pageHistoryTest extends minifluxTestCase public function testBookmarkReadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -156,6 +168,10 @@ class pageHistoryTest extends minifluxTestCase public function testUnbookmarkReadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleReadBookmarked(); $this->setArticleAsCurrentArticle($article); diff --git a/tests/integration/pageUnreadTest.php b/tests/integration/pageUnreadTest.php index 2c8312d..5ee459b 100644 --- a/tests/integration/pageUnreadTest.php +++ b/tests/integration/pageUnreadTest.php @@ -66,6 +66,10 @@ class pageUnreadTest extends minifluxTestCase public function testMarkReadNotBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -96,6 +100,10 @@ class pageUnreadTest extends minifluxTestCase public function testMarkReadBookmarkedArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -126,6 +134,10 @@ class pageUnreadTest extends minifluxTestCase public function testBookmarkUnreadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadNotBookmarked(); $this->setArticleAsCurrentArticle($article); @@ -156,6 +168,10 @@ class pageUnreadTest extends minifluxTestCase public function testUnbookmarkUnreadArticleKeyboard() { + if ($this->getBrowser() === "firefox") { + $this->markTestSkipped('The key property isn\'t properly set with selenium.'); + } + $article = $this->getArticleUnreadBookmarked(); $this->setArticleAsCurrentArticle($article);