Commit graph

237 commits

Author SHA1 Message Date
LeeDr
069f335c0b Several new TileMap tests for 10 zoom levels, Fit Data Bounds, and save zoom level 2016-08-04 12:15:23 -05:00
Stéphane Campinas
48e7c94934 corrected CSS selection 2016-07-21 11:47:25 +01:00
LeeDr
2953d84c6f change other headerPage to header 2016-07-06 17:14:12 -05:00
LeeDr
2945d75df6 Fix a headerPage typo, un-nest some promises. 2016-07-06 16:44:44 -05:00
LeeDr
7f5590aa5b Changes to fix settings page failure 2016-07-06 15:46:00 -05:00
LeeDr
a8c1b4e804 Try to fix another staleElementReference in data table test 2016-07-01 17:40:01 -05:00
LeeDr
583c89012c Add a debug log so we can tell what page we're going to if we fail 2016-06-30 15:13:56 -05:00
LeeDr
cfe85639fc Add getSpinnerDone after clicking a new page in index pattern field list 2016-06-30 14:44:57 -05:00
CJ Cenizal
733a52d00a Remove page object references from support/index. 2016-06-29 06:02:00 -07:00
CJ Cenizal
499e659adb Remove empty constructors from Page Object classes. 2016-06-28 09:12:22 -07:00
CJ Cenizal
91e919d1c5 Convert all page objects to be ES6 classes and rely on PageObjects module instead of support. 2016-06-27 17:22:47 -07:00
CJ Cenizal
64828f12ec Create packages for util and page object files in functional tests.
- Rename page_objects.js to page_objects/index.js.
- Create support/utils folder to contain bdd_wrapper, elastic_dump, es_client, log, and try, all exported by an index.js.
2016-06-23 10:26:45 -07:00
CJ Cenizal
2c7394b033 Add PageObjects facade to support/index.js, allowing us to enable all functional tests during the refactor. 2016-06-23 10:24:17 -07:00
CJ Cenizal
31137131f3 Refactor functional tests, particularly support/index.js.
- Each page object exposes an init method, which accepts a reference to remote.
- Extract page objects from support/index.js into PageObjects.js.
- PageObjects.js also exposes an init method, which accepts a reference to remote. It’s responsible for passing this onto all of the page object instances.
- The functional tests index file calls PageObjects.init and provides the remote reference.
- Extract log and try method functionality from common.js into Log and Try utils.
- Remove common.js dependency from es_client.js and elastic_dump.js.
- Partially convert “discover” tests to use PageObjects, as a demonstration.
2016-06-23 10:24:17 -07:00
Tyler Smalley
b4c3991588 Merge pull request #7516 from tylersmalley/7481-require-index-pattern
Adds route option for requireDefaultIndex
2016-06-22 15:06:40 -07:00
Tyler Smalley
14ef79717c Resolves tests for management redirect changes
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-06-21 23:36:35 -07:00
CJ Cenizal
37f82f146f Create visual_regression test suite.
- Add test:visualRegression npm script.
- Split up test:visualRegression grunt task into takeScreenshots and buildGallery subtasks.
- Add intern_visual_regression.js test file.
- Rename api_itern.js -> intern_api.js for consistency.
- Refactor delayed exports logic for readability.
- Refactor common.js page object to use ES2015 Class.
2016-06-21 20:50:55 -07:00
LeeDr
b7e18730a7 Remove a couple unneeded calls to getSpinnerDone 2016-06-17 10:26:37 -05:00
LeeDr
570f54c737 remove some out of date comments 2016-06-16 15:40:25 -05:00
LeeDr
ae56c13583 merge master 2016-06-16 13:54:01 -05:00
LeeDr
bb042f767b Documenting magic number 2016-06-16 12:55:33 -05:00
LeeDr
65f74e08b9 Limit length of currentUrl when navigating. Too long indicates it didn't change from TileMap to New Vis 2016-06-16 09:02:53 -05:00
LeeDr
475220a129 getSpinnerDone at the end of loadSavedDashboard 2016-06-15 18:06:01 -05:00
LeeDr
e037140866 getSpinnerDone after setting absolute time range and clicking Go 2016-06-15 16:50:26 -05:00
LeeDr
14b7d3a9e2 Additional stability improvements 2016-06-15 15:03:09 -05:00
LeeDr
739b00581e Add a sleep back into saveDashboard 2016-06-15 13:29:51 -05:00
LeeDr
8531d9bf01 Remove auth from URL 2016-06-15 12:59:44 -05:00
LeeDr
bfcb875c77 Merge master 2016-06-15 11:29:23 -05:00
LeeDr
d4914a3cff getSpinnerDone in dashboard 2016-06-15 11:19:59 -05:00
Tyler Smalley
91b6d92529 Changes settings to management
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-06-14 16:43:12 -07:00
LeeDr
057ec2db81 Testing a sleep between get and refresh 2016-06-14 11:23:10 -05:00
LeeDr
5d02617830 Change browser from firefox to chrome. Add try in saveDashboard. 2016-06-13 16:51:40 -05:00
CJ Cenizal
0fb84e4696 Take screenshots of UI throughout functional tests. 2016-06-13 11:44:49 -07:00
spalger
f0c370209e [functional tests] move common.handleError to a higher level 2016-06-12 21:02:06 -07:00
CJ Cenizal
8b08d1ac0b Fix bug in test common.js handleError method when saving a screenshot. 2016-06-10 12:44:59 -07:00
CJ Cenizal
9fa2e82b31 Add screenshot-comparison utility, to protect against visual regressions during CSS refactors.
- Remove test/output and added test/screenshots (requires a Jenkins change).
- Add test/screenshots/baseline images. These document the expected state of the UI.
- Add dependency on image-diff package.
- Add utilities/compareScreenshots.js, which can be run via 'npm run compareScreenshots'.
2016-06-08 15:52:23 -07:00
LeeDr
2462b49df1 Condensed common delete index and updateConfigDoc into one method. 2016-06-06 14:08:33 -05:00
LeeDr
c39217480b Switch Discover and Settings tests to use esClient to wipe ,kibana 2016-06-03 13:49:00 -05:00
Nicolás Bevacqua
b6a0b8979d Merge pull request #6543 from bevacqua/bugfix/no-results-timepicker
Fix timepicker button behavior in "No Results" page for timeseries data
2016-06-02 19:22:49 -03:00
LeeDr
43c7257b88 One new discover test for issue #5937 use back button. 2016-05-31 23:36:25 -05:00
LeeDr
9fe89d9e66 Removed un-used requires. 2016-05-31 16:50:42 -05:00
Nicolás Bevacqua
496b8a998e [test] Fix test fixtures. 2016-05-31 18:49:12 -03:00
LeeDr
1566cc3a96 Remove unused self. 2016-05-31 15:45:41 -05:00
LeeDr
411bacd9d3 Some cleanup from review comments. 2016-05-31 12:15:24 -05:00
LeeDr
4ebe29e14e Moved elasticdump methods from common to support/elastic_dump.js 2016-05-27 15:49:57 -05:00
LeeDr
ac4a0ed748 Move updateConfigDoc method out of scenario_manager and into its own support/es_client. 2016-05-27 09:52:30 -05:00
LeeDr
53ede1a4ca Remove some unused vars. 2016-05-27 08:47:54 -05:00
LeeDr
988be91266 New dashboard tests using elasticdump 2016-05-26 16:32:53 -05:00
Nicolás Bevacqua
50581a86ab [test] Fix test cases for No Results page. 2016-05-20 17:39:56 -03:00
LeeDr
f2b471131d Fix a bunch of tryForTimes. 2016-05-20 14:01:15 -05:00