hermione-browser-version-changer
Overview
Use the hermione-browser-version-changer
plugin to manage the definition of the browser version for tests.
Install
npm install -D hermione-browser-version-changer
Setup
Add the plugin to the plugins
section of the testplane
config:
module.exports = {
plugins: {
'hermione-browser-version-changer': {
enabled: true,
initStore: async () => {
return {
'70.1': ['title1', 'title2'],
'70.2': ['title3', 'title4']
};
}
browsers: {
chrome: {
'70.1': (test, ver, store) => store[ver].includes(test.title),
'70.2': (test, ver, store) => store[ver].includes(test.title)
}
}
},
// other Testplane plugins...
},
// other Testplane settings...
};
Description of configuration parameters
Parameter | Type | Default value | Description |
enabled | Boolean | true | Enable / disable the plugin. |
initStore | Function | noop | Function for initializing the storage (store), which will be available in predicate. |
browsers | Object | N/A | A list of browsers and their settings. See details below. |
enabled
Enable or disable the plugin. By default: true
.