Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict'; | ||
|
||
var gemini = require('gemini'); | ||
|
||
module.exports = function (page) { | ||
gemini.suite(page.name, function (suite) { | ||
if (page.name === 'index') { | ||
suite.skip(); | ||
} | ||
suite.setUrl(page.url).setCaptureElements('body').capture('plain', function (actions, find) { | ||
|
||
actions.waitForElementToShow('shadow-dom', 7000); | ||
actions.wait(2000); | ||
}); | ||
|
||
// Do not consider navigation arrows | ||
// Change to arrows when this is fixed https://github.com/gemini-testing/gemini/issues/192 | ||
|
||
var selectors = [ | ||
// List selectors to ignore here, like '.class' | ||
]; | ||
// Insert additions | ||
try { | ||
var options = require('./gemini-test_' + page.name); | ||
if (options.selectorsToIgnore) { | ||
selectors = selectors.concat(options.selectorsToIgnore); | ||
} | ||
} catch (ex) {} | ||
suite.ignoreElements.apply(gemini, selectors); | ||
}); | ||
}; |