mirror of
https://github.com/nasa/openmct.git
synced 2025-01-03 03:46:42 +00:00
a03046400c
WTD-1287
30 lines
1015 B
JavaScript
30 lines
1015 B
JavaScript
//TODO Add filter for duplications/
|
|
var fullScreenFile = require("../common/Buttons");
|
|
|
|
describe('Test Fullscreen', function() {
|
|
var fullScreenClass = new fullScreenFile();
|
|
|
|
beforeEach(require('../common/Launch'));
|
|
|
|
beforeEach(function() {
|
|
browser.wait(function(){
|
|
return element(by.css('[title="Enter full screen mode"]')).isPresent();
|
|
}, 7000);
|
|
browser.sleep(1000);
|
|
});
|
|
|
|
it('should find fullscreen button', function(){
|
|
expect(element(by.css('[title="Enter full screen mode"]')).isDisplayed()).toBeTruthy();
|
|
|
|
});it('should enter fullscreen when fullscreen button is pressed', function(){
|
|
function getFullScreen(){
|
|
return document.webkitIsFullScreen;
|
|
}
|
|
var fullscreen = browser.executeScript(getFullScreen)
|
|
expect(fullscreen).toBeFalsy();
|
|
fullScreenClass.fullScreen()
|
|
fullscreen = browser.executeScript(getFullScreen)
|
|
expect(fullscreen).toBeTruthy();
|
|
});
|
|
});
|