summaryrefslogtreecommitdiff
path: root/tests/selenium/SeleniumTestConstants.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/selenium/SeleniumTestConstants.php')
-rw-r--r--tests/selenium/SeleniumTestConstants.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/selenium/SeleniumTestConstants.php b/tests/selenium/SeleniumTestConstants.php
new file mode 100644
index 00000000..1defb73c
--- /dev/null
+++ b/tests/selenium/SeleniumTestConstants.php
@@ -0,0 +1,24 @@
+<?php
+
+class SeleniumTestConstants {
+ const WIKI_TEST_WAIT_TIME = 3000; // Waiting time
+
+ //commonly used links
+ const LINK_MAIN_PAGE = 'link=Main page';
+ const LINK_RANDOM_PAGE = 'link=Random article';
+ const TEXT_PAGE_HEADING = 'firstHeading';
+
+ const LINK_START = 'link=';
+ const TEXT_EDITOR = 'wpTextbox1';
+ const LINK_PREVIEW = 'wpPreview';
+ const LINK_EDIT = 'link=Edit';
+
+ const WIKI_SEARCH_PAGE = 'Hair (musical)'; // Page name to search
+ const WIKI_TEXT_SEARCH = 'TV'; // Text to search
+ const WIKI_INTERNAL_LINK = 'Wikieditor-Fixture-Page'; // Exisiting page name to add as an internal tag
+
+ const INPUT_SEARCH_BOX = 'searchInput';
+ const BUTTON_SEARCH = 'mw-searchButton';
+ const BUTTON_SAVE = 'wpSave';
+}
+