mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
[Tests] Separate out page launcher
WTD-1287
This commit is contained in:
@ -3,19 +3,19 @@ var fullScreenFile = require("../common/Buttons");
|
||||
|
||||
describe('Test Fullscreen', function() {
|
||||
var fullScreenClass = new fullScreenFile();
|
||||
|
||||
|
||||
beforeEach(require('../common/Launch'));
|
||||
|
||||
beforeEach(function() {
|
||||
browser.ignoreSynchronization = true;
|
||||
browser.get('http://localhost:1984/warp/');
|
||||
browser.sleep(1000);
|
||||
browser.wait(function(){
|
||||
return element(by.css('[title="Enter full screen mode"]')).isPresent();
|
||||
}, 7000);
|
||||
browser.sleep(1000)
|
||||
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;
|
||||
@ -24,6 +24,6 @@ describe('Test Fullscreen', function() {
|
||||
expect(fullscreen).toBeFalsy();
|
||||
fullScreenClass.fullScreen()
|
||||
fullscreen = browser.executeScript(getFullScreen)
|
||||
expect(fullscreen).toBeTruthy();
|
||||
expect(fullscreen).toBeTruthy();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user