03373b5abe
This commit prevents logging with Enter key from happening in Firefox tests. There's a well-known bug associated with browser.keys() on Firefox. We add an additional check to the Login test specs to prevent that from happening.
19 lines
232 B
JavaScript
19 lines
232 B
JavaScript
'use strict';
|
|
|
|
class Page {
|
|
open(path) {
|
|
browser.url(path);
|
|
}
|
|
|
|
pressEnter() {
|
|
browser.keys('Enter');
|
|
}
|
|
|
|
isFirefox() {
|
|
return browser.desiredCapabilities.browserName == 'firefox';
|
|
}
|
|
}
|
|
|
|
module.exports = Page;
|
|
|