Replace beforeAll with setupAndLoadDocument
Replace beforeAll in most tests with new helper function Tests that need to close or reopen test files cannot use the new function and will be updated later Signed-off-by: Neil Guertin <neil.guertin@collabora.com> Change-Id: I372280e55993123fc26f83cb2e6e6e78665a6846pull/8812/head
parent
7cc0c1996e
commit
dfa13bfe62
|
@ -1,6 +1,35 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
/* global cy Cypress expect */
|
||||
|
||||
/*
|
||||
* Covers most use cases. For more flexibility,
|
||||
* call setupDocument and loadDocument directly
|
||||
* fileName: Includes subFolder, for example: 'calc/hello-world.ods'
|
||||
*/
|
||||
function setupAndLoadDocument(fullFileName, isMultiUser = false) {
|
||||
cy.log('>> setupAndLoadDocument - start');
|
||||
|
||||
// split 'calc/hello-world.ods' to 'calc' and 'hello-world.ods'
|
||||
var subFolder;
|
||||
var fileName;
|
||||
if (fullFileName.includes('/')) {
|
||||
subFolder = fullFileName.substr(0, fullFileName.lastIndexOf('/'));
|
||||
fileName = fullFileName.substr(fullFileName.lastIndexOf('/')+1, fullFileName.length);
|
||||
} else {
|
||||
subFolder = undefined;
|
||||
fileName = fullFileName;
|
||||
}
|
||||
|
||||
// TODO: replace with loadDocument and setupDocument
|
||||
if (isMultiUser) {
|
||||
beforeAll(fileName, subFolder, undefined, isMultiUser);
|
||||
} else {
|
||||
beforeAll(fileName, subFolder);
|
||||
}
|
||||
|
||||
cy.log('<< setupAndLoadDocument - end');
|
||||
}
|
||||
|
||||
function copyFile(fileName, newFileName, subFolder) {
|
||||
if (subFolder === undefined) {
|
||||
cy.task('copyFile', {
|
||||
|
@ -1179,6 +1208,7 @@ function copy() {
|
|||
});
|
||||
}
|
||||
|
||||
module.exports.setupAndLoadDocument = setupAndLoadDocument;
|
||||
module.exports.loadTestDoc = loadTestDoc;
|
||||
module.exports.checkIfDocIsLoaded = checkIfDocIsLoaded;
|
||||
module.exports.assertCursorAndFocus = assertCursorAndFocus;
|
||||
|
|
|
@ -5,11 +5,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Annotation Tests', function() {
|
||||
var origTestFileName = 'annotation.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/annotation.ods');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'AutoFilter', function() {
|
||||
var origTestFileName = 'autofilter.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/autofilter.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
toggleAutofilter();
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var desktophelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Calc bottom bar tests.', function() {
|
||||
var origTestFileName = 'BottomBar.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/BottomBar.ods');
|
||||
});
|
||||
|
||||
it('Bottom tool bar.', function() {
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Change cell appearance.', function() {
|
||||
var origTestFileName = 'cell_appearance.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/cell_appearance.ods');
|
||||
});
|
||||
|
||||
it('Apply background color', function() {
|
||||
|
|
|
@ -5,10 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Test jumping on large cell selection', function() {
|
||||
var testFileName = 'cell_cursor.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/cell_cursor.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#toolbar-up .ui-scroll-right').click();
|
||||
cy.cGet('#sidebar').click({force: true});
|
||||
|
@ -23,10 +22,9 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Test jumping on large cell
|
|||
});
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Test jumping on large cell selection with split panes', function() {
|
||||
var testFileName = 'cell_cursor_split.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/cell_cursor_split.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#toolbar-up .ui-scroll-right').click();
|
||||
cy.cGet('#sidebar').click({force: true});
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Calc clipboard tests.', function() {
|
||||
var origTestFileName = 'clipboard.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/clipboard.ods');
|
||||
});
|
||||
|
||||
function setDummyClipboard(type, content, image = false, fail = false) {
|
||||
|
|
|
@ -3,11 +3,9 @@ var helper = require('../../common/helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function() {
|
||||
var origTestFileName = 'delete_objects.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/delete_objects.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Calc focus tests', function() {
|
||||
var origTestFileName = 'focus.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/focus.ods');
|
||||
});
|
||||
|
||||
it('Formula-bar focus', function() {
|
||||
|
|
|
@ -10,10 +10,9 @@ var helper = require('../../common/helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagscreenshot'], 'Help dialog update', function() {
|
||||
var testFileName = 'help_dialog.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/help_dialog.ods');
|
||||
});
|
||||
|
||||
it('Chart selected sidebar open', function() {
|
||||
|
|
|
@ -5,11 +5,9 @@ var { insertImage, deleteImage, assertImageSize } = require('../../common/deskto
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Image Operation Tests', function() {
|
||||
var origTestFileName = 'image_operation.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/image_operation.ods');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,10 +4,9 @@
|
|||
var helper = require('../../common/helper');
|
||||
|
||||
describe(['tagdesktop'], 'JSDialog unit test', function() {
|
||||
var testFileName = 'help_dialog.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/help_dialog.ods');
|
||||
});
|
||||
|
||||
it('JSDialog popup dialog', function() {
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var { insertImage, deleteImage } = require('../../common/desktop_helper');
|
||||
|
||||
describe.skip(['tagdesktop'], 'Navigator tests.', function () {
|
||||
var origTestFileName = 'navigator.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function () {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/navigator.ods');
|
||||
|
||||
cy.cGet('#menu-view').click();
|
||||
cy.cGet('#menu-navigator').click();
|
||||
|
|
|
@ -5,16 +5,8 @@ const { insertImage } = require('../../common/desktop_helper');
|
|||
|
||||
describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file types', function () {
|
||||
|
||||
var testFileName = '';
|
||||
|
||||
function before(filename) {
|
||||
var origTestFileName = filename;
|
||||
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
}
|
||||
|
||||
function openReadOnlyFile(filename) {
|
||||
testFileName = helper.loadTestDocNoIntegration(filename, 'calc', false, false, false);
|
||||
helper.loadTestDocNoIntegration(filename, 'calc', false, false, false);
|
||||
|
||||
//check doc is loaded
|
||||
cy.cGet('.leaflet-canvas-container canvas', {timeout : Cypress.config('defaultCommandTimeout') * 2.0});
|
||||
|
@ -36,7 +28,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
}
|
||||
|
||||
it('Open xls file', { defaultCommandTimeout: 60000 }, function () {
|
||||
before('testfile.xls');
|
||||
helper.setupAndLoadDocument('calc/testfile.xls');
|
||||
|
||||
assertData();
|
||||
|
||||
|
@ -44,7 +36,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open xlsx file', { defaultCommandTimeout: 60000 }, function () {
|
||||
before('testfile.xlsx');
|
||||
helper.setupAndLoadDocument('calc/testfile.xlsx');
|
||||
|
||||
assertData();
|
||||
});
|
||||
|
@ -56,7 +48,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
//to fit csv jsdialog in window
|
||||
cy.viewport(1280, 960);
|
||||
|
||||
testFileName = helper.loadTestDocNoIntegration('testfile.csv', 'calc', false, false, false);
|
||||
helper.loadTestDocNoIntegration('testfile.csv', 'calc', false, false, false);
|
||||
|
||||
cy.cGet('form.jsdialog-container.lokdialog_container').should('exist');
|
||||
|
||||
|
@ -89,7 +81,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open xlsm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.xlsm');
|
||||
helper.setupAndLoadDocument('calc/testfile.xlsm');
|
||||
|
||||
assertData();
|
||||
|
||||
|
@ -109,7 +101,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open fods file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.fods');
|
||||
helper.setupAndLoadDocument('calc/testfile.fods');
|
||||
|
||||
//select all the content of doc
|
||||
assertData();
|
||||
|
|
|
@ -4,10 +4,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Row Column Operation', function() {
|
||||
var testFileName = 'row_column_operation.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/row_column_operation.ods');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
helper.setDummyClipboardForCopy();
|
||||
calcHelper.assertSheetContents(['Hello','Hi','World','Bye'], true);
|
||||
|
|
|
@ -4,10 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document', function() {
|
||||
var testFileName = 'scrolling.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/scrolling.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#toolbar-up .ui-scroll-right').click();
|
||||
cy.cGet('#sidebar').click({force: true});
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var searchHelper = require('../../common/search_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Searching via search bar.', function() {
|
||||
var origTestFileName = 'search_bar.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/search_bar.ods');
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sheet Operations.', function () {
|
||||
var origTestFileName = 'sheet_operation.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function () {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/sheet_operation.ods');
|
||||
});
|
||||
|
||||
it('Insert sheet', function () {
|
||||
|
|
|
@ -4,10 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sheet switching tests', function() {
|
||||
var testFileName = 'switch.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/switch.ods');
|
||||
});
|
||||
|
||||
/* switch.ods has 2 sheets, 1st with data in G45, 2nd with data in F720*/
|
||||
|
|
|
@ -3,11 +3,9 @@
|
|||
var helper = require('../../common/helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Calc sidebar dialog image caching', function() {
|
||||
var origTestFileName = 'many-sizes.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/many-sizes.ods');
|
||||
});
|
||||
|
||||
it('Sidebar image caching', function() {
|
||||
|
|
|
@ -5,11 +5,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function() {
|
||||
var origTestFileName = 'statusbar.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/statusbar.ods');
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
desktopHelper.showStatusBarIfHidden();
|
||||
|
|
|
@ -6,10 +6,9 @@ var repairHelper = require('../../common/repair_document_helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Editing Operations', function() {
|
||||
var testFileName = 'undo_redo.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/undo_redo.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe.skip(['tagdesktop'], 'Scroll through document, insert/delete items', function() {
|
||||
var origTestFileName = 'navigator.odg';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'draw');
|
||||
helper.setupAndLoadDocument('draw/navigator.odg');
|
||||
|
||||
desktopHelper.selectZoomLevel('100');
|
||||
cy.cGet('#menu-view').click();
|
||||
|
|
|
@ -5,14 +5,12 @@ var helper = require('../../common/helper');
|
|||
var { addSlide, changeSlide } = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Annotation Tests', function() {
|
||||
var origTestFileName = 'comment_switching.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
// Give more horizontal room so that comments do not fall off the right
|
||||
// side of the screen, causing scrolling or hidden buttons
|
||||
cy.viewport(1500, 600);
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/comment_switching.odp');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
|
@ -145,12 +143,10 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop'], 'Comment Scrolling',function() {
|
||||
var origTestFileName = 'comment_switching.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
cy.viewport(1500, 600);
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/comment_switching.odp');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
cy.cGet('#options-modify-page').click();
|
||||
|
|
|
@ -5,11 +5,9 @@ var impressHelper = require('../../common/impress_helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties on selected shape.', function() {
|
||||
var origTestFileName = 'apply_paragraph_props_text.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/apply_paragraph_props_text.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#toolbar-up > .ui-scroll-right').click();
|
||||
cy.cGet('#modifypage').click({force: true});
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function() {
|
||||
var origTestFileName = 'delete_objects.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/delete_objects.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
|
|
|
@ -29,10 +29,9 @@ function selectTextShape(i) {
|
|||
}
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Basic typing and caret moving', function() {
|
||||
var testFileName = 'two_text_shapes.odp';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/two_text_shapes.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#toolbar-up > .ui-scroll-right').click();
|
||||
cy.cGet('#modifypage').click({force: true});
|
||||
|
|
|
@ -4,7 +4,6 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentation.', function() {
|
||||
var testFileName = 'text_fields.odp';
|
||||
|
||||
function getSlideShowContent() {
|
||||
return cy.cGet().find('.leaflet-slideshow').then(($iframe) =>{
|
||||
|
@ -13,8 +12,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
}
|
||||
|
||||
function before(fileName) {
|
||||
testFileName = fileName;
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/' + fileName);
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
desktopHelper.hideSidebarIfVisible();
|
||||
|
|
|
@ -6,11 +6,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var { triggerNewSVGForShapeInTheCenter } = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Image Operation Tests', function() {
|
||||
var origTestFileName = 'image_operation.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/image_operation.odp');
|
||||
});
|
||||
|
||||
it('Insert/Delete image',function() {
|
||||
|
|
|
@ -3,10 +3,9 @@
|
|||
var helper = require('../../common/helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'JSDialog Tests', function() {
|
||||
var testFileName = 'jsdialog.odp';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/jsdialog.odp');
|
||||
});
|
||||
|
||||
it('Check disabled state in animation sidebar', function() {
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe.skip(['tagdesktop'], 'Scroll through document, insert/delete items', function() {
|
||||
var origTestFileName = 'navigator.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/navigator.odp');
|
||||
|
||||
desktopHelper.selectZoomLevel('100');
|
||||
cy.cGet('#menu-view').click();
|
||||
|
|
|
@ -5,12 +5,8 @@ const { selectZoomLevel, openReadOnlyFile } = require('../../common/desktop_help
|
|||
|
||||
describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file types', function() {
|
||||
|
||||
var testFileName = '';
|
||||
|
||||
function before(filename) {
|
||||
var origTestFileName = filename;
|
||||
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/' + filename);
|
||||
|
||||
selectZoomLevel('50');
|
||||
|
||||
|
@ -76,15 +72,15 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open pot file', { defaultCommandTimeout: 60000 }, function() {
|
||||
testFileName = openReadOnlyFile('impress', 'testfile.pot');
|
||||
openReadOnlyFile('impress', 'testfile.pot');
|
||||
});
|
||||
|
||||
it('Open potx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
testFileName = openReadOnlyFile('impress', 'testfile.potx');
|
||||
openReadOnlyFile('impress', 'testfile.potx');
|
||||
});
|
||||
|
||||
it('Open potm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
testFileName = openReadOnlyFile('impress', 'testfile.potm');
|
||||
openReadOnlyFile('impress', 'testfile.potm');
|
||||
});
|
||||
|
||||
it('Open fodp file', { defaultCommandTimeout: 60000 }, function() {
|
||||
|
|
|
@ -4,10 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document', function() {
|
||||
var testFileName = 'scrolling.odp';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/scrolling.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#toolbar-up .ui-scroll-right').click();
|
||||
cy.cGet('#modifypage').click({force: true});
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var searchHelper = require('../../common/search_helper');
|
||||
|
||||
describe.skip(['tagdesktop'], 'Searching via search bar' ,function() {
|
||||
var origTestFileName = 'search_bar.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/search_bar.odp');
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
|
|
|
@ -5,10 +5,9 @@ var impressHelper = require('../../common/impress_helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sidebar Tests', function() {
|
||||
var testFileName = 'sidebar.odp';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/sidebar.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
|
|
|
@ -6,11 +6,9 @@ var impressHelper = require('../../common/impress_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Slide operations', function() {
|
||||
var origTestFileName = 'slide_operations.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/slide_operations.odp');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function() {
|
||||
var origTestFileName = 'statusbar.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/statusbar.odp');
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
desktopHelper.showStatusBarIfHidden ();
|
||||
|
|
|
@ -5,11 +5,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Table operations', function() {
|
||||
var origTestFileName = 'table_operation.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/table_operation.odp');
|
||||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var impressHelper = require('../../common/impress_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', function() {
|
||||
var origTestFileName = 'top_toolbar.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/top_toolbar.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
|
|
|
@ -6,10 +6,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var repairHelper = require('../../common/repair_document_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Editing Operations', function() {
|
||||
var testFileName = 'undo_redo.odp';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/undo_redo.odp');
|
||||
desktopHelper.switchUIToCompact();
|
||||
desktopHelper.selectZoomLevel('30');
|
||||
impressHelper.selectTextShapeInTheCenter();
|
||||
|
|
|
@ -5,12 +5,10 @@ var { selectZoomLevel } = require('../../common/desktop_helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Annotation Tests', function() {
|
||||
var origTestFileName = 'annotation.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
cy.viewport(1400, 600);
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
cy.cGet('#optionscontainer div[id$="SidebarDeck.PropertyDeck"]').click(); // Hide sidebar.
|
||||
selectZoomLevel('50');
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
var helper = require('../../common/helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Complex image operation test', function() {
|
||||
var origTestFileName = 'complex_image_operation.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
localStorage.setItem('image_validation_test', true);
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/complex_image_operation.odt');
|
||||
});
|
||||
|
||||
it('tile image validation test',function() {
|
||||
|
|
|
@ -3,14 +3,9 @@
|
|||
var helper = require('../../common/helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Clipboard operations.', function() {
|
||||
var testFileName;
|
||||
|
||||
function before(filename) {
|
||||
testFileName = helper.beforeAll(filename, 'writer');
|
||||
}
|
||||
|
||||
it('Copy and Paste text.', function() {
|
||||
before('copy_paste.odt');
|
||||
helper.setupAndLoadDocument('writer/copy_paste.odt');
|
||||
// Select some text
|
||||
helper.selectAllText();
|
||||
|
||||
|
@ -32,7 +27,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Clipboard operations.', fu
|
|||
});
|
||||
|
||||
it('Copy plain text.', function() {
|
||||
before('copy_paste_simple.odt');
|
||||
helper.setupAndLoadDocument('writer/copy_paste_simple.odt');
|
||||
|
||||
helper.setDummyClipboardForCopy('text/plain');
|
||||
helper.selectAllText();
|
||||
|
|
|
@ -6,10 +6,9 @@ var ceHelper = require('../../common/contenteditable_helper');
|
|||
// var repairHelper = require('../../common/repair_document_helper');
|
||||
|
||||
describe(['taga11ydisabled'], 'Editable area [a11y disabled] - Empty paragraph', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -44,10 +43,9 @@ describe(['taga11ydisabled'], 'Editable area [a11y disabled] - Empty paragraph',
|
|||
});
|
||||
|
||||
describe(['taga11ydisabled'], 'Editable area [a11y disabled] - Basic typing', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -120,10 +118,9 @@ describe(['taga11ydisabled'], 'Editable area [a11y disabled] - Basic typing', fu
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Empty paragraph', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -163,10 +160,9 @@ describe(['taga11yenabled'], 'Editable area - Empty paragraph', function() {
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Basic typing and caret moving', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -475,10 +471,9 @@ describe(['taga11yenabled'], 'Editable area - Basic typing and caret moving', fu
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Inner selection', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -630,10 +625,9 @@ describe(['taga11yenabled'], 'Editable area - Inner selection', function() {
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Multi-paragraph selection', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -781,10 +775,9 @@ describe(['taga11yenabled'], 'Editable area - Multi-paragraph selection', functi
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Empty selection', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -863,10 +856,9 @@ describe(['taga11yenabled'], 'Editable area - Empty selection', function() {
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - Undo/Redo', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -939,10 +931,9 @@ describe(['taga11yenabled'], 'Editable area - Undo/Redo', function() {
|
|||
});
|
||||
|
||||
describe(['taga11yenabled'], 'Editable area - More typing', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -1027,10 +1018,9 @@ describe(['taga11yenabled'], 'Editable area - More typing', function() {
|
|||
// • Item 2
|
||||
// • Item 3
|
||||
describe(['taga11yenabled'], 'Editable area - Unordered lists', function() {
|
||||
var testFileName = 'unordered_list.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/unordered_list.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
@ -1211,10 +1201,9 @@ describe(['taga11yenabled'], 'Editable area - Unordered lists', function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Editing - Basic typing', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var writerHelper = require('../../common/writer_helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'File Property Tests', function() {
|
||||
var origTestFileName = 'file_properties.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/file_properties.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagproxy'], 'Focus tests', function() {
|
||||
var origTestFileName = 'focus.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/focus.odt');
|
||||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,10 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.', function() {
|
||||
var testFileName = 'shape_operations.odt';
|
||||
|
||||
function before(fileName) {
|
||||
testFileName = helper.beforeAll(fileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/' + fileName);
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
desktopHelper.showStatusBarIfHidden();
|
||||
|
|
|
@ -9,10 +9,9 @@
|
|||
const { hideSidebar } = require('../../common/desktop_helper');
|
||||
var helper = require('../../common/helper');
|
||||
describe(['tagscreenshot'], 'Help dialog screenshot updation', function() {
|
||||
var testFileName = 'help_dialog.odt';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/help_dialog.odt');
|
||||
});
|
||||
|
||||
function copyScreenshot(fileName) {
|
||||
|
|
|
@ -5,11 +5,9 @@ var { insertImage, deleteImage, assertImageSize } = require('../../common/deskto
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Image Operation Tests', function() {
|
||||
var origTestFileName = 'image_operation.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/image_operation.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
|
|
|
@ -6,11 +6,9 @@ var ceHelper = require('../../common/contenteditable_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Invalidation tests.', function() {
|
||||
var origTestFileName = 'invalidations.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/invalidations.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
|
|
@ -4,10 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe.skip(['tagdesktop'], 'Scroll through document, modify heading', function() {
|
||||
var testFileName = 'navigator.odt';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/navigator.odt');
|
||||
|
||||
cy.cGet('#menu-view').click();
|
||||
cy.cGet('#menu-navigator').click();
|
||||
|
|
|
@ -5,11 +5,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Notebookbar tests.', function() {
|
||||
var origTestFileName = 'notebookbar.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/notebookbar.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
|
|
|
@ -4,14 +4,6 @@ var helper = require('../../common/helper');
|
|||
|
||||
describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file types', function() {
|
||||
|
||||
var testFileName = '';
|
||||
|
||||
function before(filename) {
|
||||
var origTestFileName = filename;
|
||||
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
}
|
||||
|
||||
function assertData() {
|
||||
//select all the content of doc
|
||||
helper.typeIntoDocument('{shift}{end}');
|
||||
|
@ -46,34 +38,34 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
}
|
||||
|
||||
it('Open doc file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.doc');
|
||||
helper.setupAndLoadDocument('writer/testfile.doc');
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open docx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.docx');
|
||||
helper.setupAndLoadDocument('writer/testfile.docx');
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open docm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.docm');
|
||||
helper.setupAndLoadDocument('writer/testfile.docm');
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open fodt file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.fodt');
|
||||
helper.setupAndLoadDocument('writer/testfile.fodt');
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open dot file', { defaultCommandTimeout: 60000 }, function() {
|
||||
testFileName = openReadOnlyFile('writer', 'testfile.dot');
|
||||
openReadOnlyFile('writer', 'testfile.dot');
|
||||
});
|
||||
|
||||
it('Open dotm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
testFileName = openReadOnlyFile('writer', 'testfile.dotm');
|
||||
openReadOnlyFile('writer', 'testfile.dotm');
|
||||
});
|
||||
|
||||
it('Open dotx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
testFileName = openReadOnlyFile('writer','testfile.dotx');
|
||||
openReadOnlyFile('writer','testfile.dotx');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,10 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document', function() {
|
||||
var testFileName = 'scrolling.odt';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/scrolling.odt');
|
||||
desktopHelper.switchUIToCompact();
|
||||
|
||||
cy.cGet('#toolbar-up .ui-scroll-right').click();
|
||||
|
|
|
@ -5,11 +5,9 @@ var searchHelper = require('../../common/search_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Searching via search bar' ,function() {
|
||||
var origTestFileName = 'search_bar.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/search_bar.odt');
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function() {
|
||||
var origTestFileName = 'statusbar.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/statusbar.odt');
|
||||
desktopHelper.switchUIToCompact();
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
|
|
|
@ -5,10 +5,9 @@ var helper = require('../../common/helper');
|
|||
var ceHelper = require('../../common/contenteditable_helper');
|
||||
|
||||
describe(['taga11yenabled'], 'Table accessibility', function() {
|
||||
var testFileName = 'table_accessibility.odt';
|
||||
|
||||
beforeEach(function () {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/table_accessibility.odt');
|
||||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var mode = Cypress.env('USER_INTERFACE');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Table operations', function() {
|
||||
var origTestFileName = 'table_operation.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/table_operation.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
desktopHelper.selectZoomLevel('70');
|
||||
});
|
||||
|
|
|
@ -4,12 +4,10 @@ var helper = require('../../common/helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Track Changes', function () {
|
||||
var origTestFileName = 'track_changes.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function () {
|
||||
cy.viewport(1400, 600);
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/track_changes.odt');
|
||||
desktopHelper.switchUIToCompact();
|
||||
cy.cGet('#sidebar').click({force: true}); // Hide sidebar.
|
||||
desktopHelper.selectZoomLevel('50');
|
||||
|
|
|
@ -5,10 +5,9 @@ var repairHelper = require('../../common/repair_document_helper');
|
|||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Editing Operations', function() {
|
||||
var testFileName = 'undo_redo.odt';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/undo_redo.odt');
|
||||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
|
|
|
@ -4,12 +4,10 @@ var helper = require('../../common/helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Idle', function() {
|
||||
var origTestFileName = 'idle.ods';
|
||||
var testFileName;
|
||||
var dimDialogSelector = '#modal-dialog-inactive_user_message-overlay';
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/idle.ods');
|
||||
});
|
||||
|
||||
function checkIfIsInteractiveAgain() {
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change alignment settings.', function() {
|
||||
var origTestFileName = 'alignment_options.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/alignment_options.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font changes.', function() {
|
||||
var origTestFileName = 'apply_font.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/apply_font.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'AutoFilter', function() {
|
||||
var origTestFileName = 'autofilter.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/autofilter.ods');
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
|
|
@ -5,10 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Interact with bottom toolbar.', function() {
|
||||
var testFileName;
|
||||
|
||||
function before(fileName) {
|
||||
testFileName = helper.beforeAll(fileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/' + fileName);
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change cell appearance.', function() {
|
||||
var origTestFileName = 'cell_appearance.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/cell_appearance.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Chart tests.', function() {
|
||||
var origTestFileName = 'chart.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/chart.ods');
|
||||
mobileHelper.enableEditingMobile();
|
||||
calcHelper.selectFirstColumn();
|
||||
insertChart();
|
||||
|
|
|
@ -5,8 +5,6 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects',function() {
|
||||
var origTestFileName = 'delete_objects.ods';
|
||||
var testFileName;
|
||||
|
||||
var eventOptions = {
|
||||
force: true,
|
||||
|
@ -15,7 +13,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects',function()
|
|||
};
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/delete_objects.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe.skip(['tagmobile'], 'Calc focus tests', function() {
|
||||
var origTestFileName = 'focus.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/focus.ods');
|
||||
|
||||
// Wait until the Formula-Bar is loaded.
|
||||
cy.cGet('.inputbar_container', {timeout : 10000});
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud'], 'Formula bar tests.', function() {
|
||||
var origTestFileName = 'formulabar.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/formulabar.ods');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -9,14 +9,13 @@ describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
|||
var testFileName;
|
||||
|
||||
function before(testFile) {
|
||||
testFileName = helper.beforeAll(testFile, 'calc');
|
||||
helper.setupAndLoadDocument('calc' + testFile);
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
}
|
||||
|
||||
it('Save', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('hamburger_menu.ods');
|
||||
calcHelper.selectEntireSheet();
|
||||
|
||||
cy.cGet('#copy-paste-container table td').should('contain.text', 'Textx');
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Image Operation Tests', function() {
|
||||
var origTestFileName = 'image_operation.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/image_operation.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud'], 'Calc insertion wizard.', function() {
|
||||
var origTestFileName = 'insertion_wizard.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/insertion_wizard.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply number formatting.', function() {
|
||||
var origTestFileName = 'number_format.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/number_format.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -4,13 +4,10 @@ var helper = require('../../common/helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
var origTestFileName = 'overlays.ods';
|
||||
var testFileName;
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Overlay bounds.', function () {
|
||||
|
||||
beforeEach(function () {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/overlays.ods');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -4,10 +4,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Row Column Operation', function() {
|
||||
var testFileName = 'row_column_operation.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/row_column_operation.ods');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var searchHelper = require('../../common/search_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Searching via search bar.', function() {
|
||||
var origTestFileName = 'search_bar.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/search_bar.ods');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Sheet Operation', function () {
|
||||
var origTestFileName = 'sheet_operation.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function () {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/sheet_operation.ods');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -5,11 +5,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Calc spell checking menu.', function() {
|
||||
var origTestFileName = 'spellchecking.ods';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/spellchecking.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -6,10 +6,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
var repairHelper = require('../../common/repair_document_helper');
|
||||
|
||||
describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Editing Operations', function() {
|
||||
var testFileName = 'undo_redo.ods';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'calc');
|
||||
helper.setupAndLoadDocument('calc/undo_redo.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font on selected shape.', function() {
|
||||
var origTestFileName = 'apply_font_shape.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/apply_font_shape.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font on selected text.', function() {
|
||||
var origTestFileName = 'apply_font_text.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/apply_font_text.odp');
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties on selected shape.', function() {
|
||||
var origTestFileName = 'apply_paragraph_props_shape.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/apply_paragraph_props_shape.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties on selected text.', function() {
|
||||
var origTestFileName = 'apply_paragraph_props_text.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/apply_paragraph_props_text.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function() {
|
||||
var origTestFileName = 'delete_objects.odp';
|
||||
var testFileName;
|
||||
|
||||
var eventOptions = {
|
||||
force: true,
|
||||
|
@ -14,7 +12,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function()
|
|||
};
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/delete_objects.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Image Operation Tests', function() {
|
||||
var origTestFileName = 'image_operation.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/image_operation.odp');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagproxy'], 'Impress focus tests', function() {
|
||||
var origTestFileName = 'focus.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/focus.odp');
|
||||
});
|
||||
|
||||
it('Select text box, no editing', function() {
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud'], 'Impress insertion wizard.', function() {
|
||||
var origTestFileName = 'insertion_wizard.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/insertion_wizard.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -6,11 +6,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe.skip('Searching via search bar.', function() {
|
||||
var origTestFileName = 'search_bar.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/search_bar.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@ var impressHelper = require('../../common/impress_helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Slide operations', function() {
|
||||
var origTestFileName = 'slide_operations.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/slide_operations.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Changing slide properties.', function() {
|
||||
var origTestFileName = 'slide_properties.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/slide_properties.odp');
|
||||
mobileHelper.enableEditingMobile();
|
||||
previewShouldBeFullWhite();
|
||||
mobileHelper.openMobileWizard();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Spell checking menu.', function() {
|
||||
var origTestFileName = 'spellchecking.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/spellchecking.odp');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var impressHelper = require('../../common/impress_helper');
|
||||
|
||||
describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Table Operation', function() {
|
||||
var origTestFileName = 'table_operation.odp';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/table_operation.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
|
|
@ -6,10 +6,9 @@ var impressHelper = require('../../common/impress_helper');
|
|||
var repairHelper = require('../../common/repair_document_helper');
|
||||
|
||||
describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Editing Operations', function() {
|
||||
var testFileName = 'undo_redo.odp';
|
||||
|
||||
beforeEach(function() {
|
||||
helper.beforeAll(testFileName, 'impress');
|
||||
helper.setupAndLoadDocument('impress/undo_redo.odp');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font changes.', function() {
|
||||
var origTestFileName = 'apply_font.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/apply_font.odt');
|
||||
mobileHelper.enableEditingMobile();
|
||||
writerHelper.selectAllTextOfDoc();
|
||||
mobileHelper.openMobileWizard();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe.skip('Apply paragraph properties.', function() {
|
||||
var origTestFileName = 'apply_paragraph_properties.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/apply_paragraph_properties.odt');
|
||||
mobileHelper.enableEditingMobile();
|
||||
writerHelper.selectAllTextOfDoc();
|
||||
mobileHelper.openMobileWizard();
|
||||
|
|
|
@ -5,11 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe.skip('Pushing bottom toolbar items.', function() {
|
||||
var origTestFileName = 'bottom_toolbar.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/bottom_toolbar.odt');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -5,10 +5,9 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Text cursor tests.', function() {
|
||||
var testFileName;
|
||||
|
||||
function before(fileName) {
|
||||
testFileName = helper.beforeAll(fileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/' + fileName);
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
}
|
||||
|
|
|
@ -4,8 +4,6 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function() {
|
||||
var origTestFileName = 'delete_objects.odt';
|
||||
var testFileName;
|
||||
|
||||
var eventOptions = {
|
||||
force: true,
|
||||
|
@ -14,7 +12,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function()
|
|||
};
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/delete_objects.odt');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -4,11 +4,9 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagproxy'], 'Focus tests', function() {
|
||||
var origTestFileName = 'focus.odt';
|
||||
var testFileName;
|
||||
|
||||
beforeEach(function() {
|
||||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
helper.setupAndLoadDocument('writer/focus.odt');
|
||||
});
|
||||
|
||||
it('Basic document focus.', function() {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue