You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This file contains hidden or 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 hidden or 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 hidden or 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
difference between colors. Used only in non-strict mode. By default it's 2.3
which should be enough for the most cases. Increasing global default is not
recommended, prefer changing tolerance for particular suites or states
instead.
* `windowSize` – specify browser window dimensions (i.e. `1600x1200`). If not
* `windowSize` — specify browser window dimensions (i.e. `1600x1200`). If not
specified, the size of the window depends on WebDriver. :warning: You can't set specific resolutions for browser Opera or mobile platforms. They use only full-screen resolution.
* `sessionsPerBrowser` - how many WebDriver sessions can be launched
* `sessionsPerBrowser` — how many WebDriver sessions can be launched
simultaneously for this browser. Default is 1. Increase the value if you
want to speed up your tests.
* `suitesPerSession` - maximum amount of test suites to run in each web driver
* `suitesPerSession` — maximum amount of test suites to run in each web driver
session. After limit is reached, session gets closed and new session gets
started. By default is `.inf` (no limit). Set to smaller number if you are
experiencing stability problems.
* `retry` – maximum amount of relaunch fallen tests with a critical error. If not
* `retry` — maximum amount of relaunch fallen tests with a critical error. If not
specified, the fallen tests will not be relaunched (by default it's 0).
Note that the same test never be performed in the same browser session.
* `screenshotMode` - image capture mode. There are 3 allowed values for this option:
* `screenshotMode` — image capture mode. There are 3 allowed values for this option:
* `auto` (default). Mode will be obtained automatically.
* `fullpage`. Gemini will deal with screenshot of full page.
* `viewport`. Only viewport area will be used.
* `compositeImage` – allows testing of regions which bottom bounds are outside of a viewport height (default: `false`).
* `compositeImage` — allows testing of regions which bottom bounds are outside of a viewport height (default: `false`).
In the resulting screenshot the area which fits the viewport bounds will be **joined** with the area which is outside
of the viewport height.
Expand All
@@ -252,9 +252,9 @@ sets:
...
```
* `files` - list of test files or directories with test files. Should be relative to project root directory. Also, you can use masks for this property. For example: `gemini/test-suites/*.gemini.js`. Can be a string if you want to specify just one file or directory.
* `files` — list of test files or directories with test files. Should be relative to project root directory. Also, you can use masks for this property. For example: `gemini/test-suites/*.gemini.js`. Can be a string if you want to specify just one file or directory.
* `browsers` - list of browser ids to run tests specified in `files`. All browsers by default.
* `browsers` — list of browser ids to run tests specified in `files`. All browsers by default.
If sets are not specified in config, all files from `gemini` directory will be launched in all browsers specified in a config.
This file contains hidden or 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
* `UPDATE_RESULT` - emitted always during update. The event is emitted with 1 argument `result`:
* `result.imagePath` - absolute path to the reference image
* `result.updated` - boolean value which is `true` when reference image have been changed and `false` when not
* `UPDATE_RESULT` — emitted always during update. The event is emitted with 1 argument `result`:
* `result.imagePath` — absolute path to the reference image
* `result.updated` — boolean value which is `true` when reference image have been changed and `false` when not
* `TEST_RESULT` - emitted always after the test is completed. The event is emitted with 1 argument `result`:
* `result.referencePath` - absolute path to the reference image
* `result.currentPath` - absolute path to the current image on your disk
* `result.equal` - boolean value which is `true` when images are equal and `false` when aren't
* `result.saveDiffTo` - function is responsible for building diff and present in the `result` only if images aren't equal
* `TEST_RESULT` — emitted always after the test is completed. The event is emitted with 1 argument `result`:
* `result.referencePath` — absolute path to the reference image
* `result.currentPath` — absolute path to the current image on your disk
* `result.equal` — boolean value which is `true` when images are equal and `false` when aren't
* `result.saveDiffTo` — function is responsible for building diff and present in the `result` only if images aren't equal
* `INTERRUPT` - emitted on signal events `SIGHUP`, `SIGINT` or `SIGTERM`. The event is emitted with 1 argument `data`:
* `data.exitCode` - exit code with which gemini will be interrupted
* `INTERRUPT` — emitted on signal events `SIGHUP`, `SIGINT` or `SIGTERM`. The event is emitted with 1 argument `data`:
* `data.exitCode` — exit code with which gemini will be interrupted
* `START_BROWSER` - emitted on browser session start. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise tests will be executed in this session only after the promise is resolved.
* `START_BROWSER` — emitted on browser session start. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise tests will be executed in this session only after the promise is resolved.
* `STOP_BROWSER` - emitted right before browser session end. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise quit will be performed only after the promise is resolved.
* `STOP_BROWSER` — emitted right before browser session end. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise quit will be performed only after the promise is resolved.
* `BEGIN` - runner event. Emitted on runner start with 1 argument `data`:
* `data.suiteCollection` - suite collection which will be run
* `data.config` - gemini config
* `data.totalStates` - number of states in collection
* `data.browserIds` - all browser ids from config
* `BEGIN` — runner event. Emitted on runner start with 1 argument `data`:
* `data.suiteCollection` — suite collection which will be run
* `data.config` — gemini config
* `data.totalStates` — number of states in collection
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use em dash ( — ) where it is needed #401
Uh oh!
There was an error while loading. Please reload this page.
Use em dash ( — ) where it is needed #401
Changes from all commits
a0fe5c7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.