Cypress: Join subFolder and fileName into filePath
Signed-off-by: Neil Guertin <neil.guertin@collabora.com> Change-Id: I361d523f564e7b9a46dd2398080eef110eeae79cpull/8916/head
parent
d471d93c1e
commit
c44bcb2980
|
@ -420,12 +420,12 @@ function pressKey(n, key) {
|
|||
cy.log('<< pressKey - end');
|
||||
}
|
||||
|
||||
function openReadOnlyFile(subFolder, fileName) {
|
||||
function openReadOnlyFile(filePath) {
|
||||
cy.log('>> openReadOnlyFile - start');
|
||||
|
||||
var newFileName = helper.setupDocument(fileName, subFolder);
|
||||
var newFilePath = helper.setupDocument(filePath);
|
||||
// Skip document checks because sidebar does not appear
|
||||
helper.loadDocument(newFileName, subFolder, true);
|
||||
helper.loadDocument(filePath, true);
|
||||
|
||||
//check doc is loaded
|
||||
cy.cGet('.leaflet-canvas-container canvas', {timeout : Cypress.config('defaultCommandTimeout') * 2.0});
|
||||
|
@ -435,7 +435,7 @@ function openReadOnlyFile(subFolder, fileName) {
|
|||
cy.cGet('#PermissionMode').should('be.visible').should('have.text', ' Read-only ');
|
||||
|
||||
cy.log('<< openReadOnlyFile - end');
|
||||
return newFileName;
|
||||
return newFilePath;
|
||||
}
|
||||
|
||||
function checkAccessibilityEnabledToBe(state) {
|
||||
|
|
|
@ -3,45 +3,53 @@
|
|||
|
||||
/*
|
||||
* Prepares the test document by copying or uploading it
|
||||
* fileName: test document file name (without path)
|
||||
* subFolder: sub folder inside data folder (e.g. writer, calc, impress)
|
||||
* returns new test document file name (without path)
|
||||
* filePath: test document file path
|
||||
* returns new test document file path
|
||||
*/
|
||||
function setupDocument(fileName, subFolder) {
|
||||
function setupDocument(filePath) {
|
||||
cy.log('>> setupDocument - start');
|
||||
cy.log('Param - fileName: ' + fileName);
|
||||
cy.log('Param - subFolder: ' + subFolder);
|
||||
cy.log('Param - filePath: ' + filePath);
|
||||
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
upLoadFileToNextCloud(fileName, subFolder);
|
||||
newFileName = fileName;
|
||||
upLoadFileToNextCloud(filePath);
|
||||
newFilePath = filePath;
|
||||
} else if (Cypress.env('SERVER') !== 'localhost') {
|
||||
newFileName = fileName;
|
||||
newFilePath = filePath;
|
||||
} else {
|
||||
// Rename and copy file to use a clean test document for every test case.
|
||||
var randomText = (Math.random() + 1).toString(36).substring(7);
|
||||
newFileName = Cypress.currentTest.title.replace(/[\/\\ ]/g, '-') + '-'+ randomText + '-' + fileName;
|
||||
copyFile(fileName, newFileName, subFolder);
|
||||
var randomText = (Math.random() + 1).toString(36).substring(2,7);
|
||||
var cypressTestName = Cypress.currentTest.title.replace(/[\/\\ \.]/g, '-'); // replace slashes and spaces and dots
|
||||
|
||||
// Check for extension. The '.' has to be in fileName specifically, not earlier in filePath
|
||||
if (getFileName(filePath).includes('.')) {
|
||||
// Add text to name before the extension
|
||||
newFilePath = filePath.substr(0, filePath.lastIndexOf('.'))
|
||||
+ '-' + cypressTestName + '-' + randomText
|
||||
+ '.' + filePath.substr(filePath.lastIndexOf('.')+1, filePath.length);
|
||||
} else {
|
||||
// Add text to name at the end
|
||||
newFilePath = filePath + '-' + cypressTestName + '-' + randomText;
|
||||
}
|
||||
|
||||
copyFile(filePath, newFilePath);
|
||||
}
|
||||
|
||||
cy.log('<< setupDocument - end');
|
||||
return newFileName;
|
||||
return newFilePath;
|
||||
}
|
||||
|
||||
/*
|
||||
* Opens the document and waits for it to be ready
|
||||
* fileName: test document file name (without path)
|
||||
* subFolder: sub folder inside data folder (e.g. writer, calc, impress)
|
||||
* filePath: test document path
|
||||
* skipDocumentChecks: Skips the document checks that wait for it to be ready.
|
||||
* This is useful for documents that have an interaction before the
|
||||
* document is loaded, such as clearing a warning about macros.
|
||||
* isMultiUser: Set to true for multiuser tests.
|
||||
*/
|
||||
function loadDocument(fileName, subFolder, skipDocumentChecks, isMultiUser) {
|
||||
function loadDocument(filePath, skipDocumentChecks, isMultiUser) {
|
||||
cy.log('>> loadDocument - start');
|
||||
cy.log('Param - fileName: ' + fileName);
|
||||
cy.log('Param - subFolder: ' + subFolder);
|
||||
cy.log('Param - filePath: ' + filePath);
|
||||
if (skipDocumentChecks) {
|
||||
cy.log('Param - skipDocumentChecks: ' + skipDocumentChecks);
|
||||
}
|
||||
|
@ -67,9 +75,9 @@ function loadDocument(fileName, subFolder, skipDocumentChecks, isMultiUser) {
|
|||
|
||||
// Load document
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
loadDocumentNextcloud(fileName, subFolder);
|
||||
loadDocumentNextcloud(filePath);
|
||||
} else {
|
||||
loadDocumentNoIntegration(fileName, subFolder, isMultiUser);
|
||||
loadDocumentNoIntegration(filePath, isMultiUser);
|
||||
}
|
||||
|
||||
// Wait for and verify that document is loaded
|
||||
|
@ -91,62 +99,48 @@ function loadDocument(fileName, subFolder, skipDocumentChecks, isMultiUser) {
|
|||
/*
|
||||
* Covers most use cases. For more flexibility,
|
||||
* call setupDocument and loadDocument directly
|
||||
* fullFileName: Includes subFolder, for example: 'calc/hello-world.ods'
|
||||
* filePath: test document path, for example: 'calc/hello-world.ods'
|
||||
*/
|
||||
function setupAndLoadDocument(fullFileName, isMultiUser = false) {
|
||||
function setupAndLoadDocument(filePath, 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;
|
||||
}
|
||||
|
||||
var newFileName = setupDocument(fileName, subFolder);
|
||||
var newFilePath = setupDocument(filePath);
|
||||
if (isMultiUser) {
|
||||
loadDocument(newFileName, subFolder, undefined, isMultiUser);
|
||||
loadDocument(newFilePath, undefined, isMultiUser);
|
||||
} else {
|
||||
loadDocument(newFileName, subFolder);
|
||||
loadDocument(newFilePath);
|
||||
}
|
||||
|
||||
cy.log('<< setupAndLoadDocument - end');
|
||||
return newFileName;
|
||||
return newFilePath;
|
||||
}
|
||||
|
||||
/*
|
||||
* Covers most use cases. For more flexibility,
|
||||
* call closeDocument and loadDocument directly
|
||||
*/
|
||||
function reloadDocument(fileName, subFolder) {
|
||||
function reloadDocument(filePath) {
|
||||
cy.log('>> reloadDocument - start');
|
||||
|
||||
closeDocument(fileName);
|
||||
loadDocument(fileName, subFolder);
|
||||
closeDocument(filePath);
|
||||
loadDocument(filePath);
|
||||
|
||||
cy.log('<< reloadDocument - end');
|
||||
}
|
||||
|
||||
function copyFile(fileName, newFileName, subFolder) {
|
||||
if (subFolder === undefined) {
|
||||
cy.task('copyFile', {
|
||||
sourceDir: Cypress.env('DATA_FOLDER'),
|
||||
destDir: Cypress.env('DATA_WORKDIR'),
|
||||
fileName: fileName,
|
||||
destFileName: newFileName,
|
||||
});
|
||||
} else {
|
||||
cy.task('copyFile', {
|
||||
sourceDir: Cypress.env('DATA_FOLDER') + subFolder + '/',
|
||||
destDir: Cypress.env('DATA_WORKDIR') + subFolder + '/',
|
||||
fileName: fileName,
|
||||
destFileName: newFileName,
|
||||
});
|
||||
}
|
||||
function copyFile(filePath, newFilePath) {
|
||||
// subFolder can be '', if filePath does not have a slash
|
||||
var subFolder = getSubFolder(filePath);
|
||||
var newSubFolder = getSubFolder(newFilePath);
|
||||
var fileName = getFileName(filePath);
|
||||
var newFileName = getFileName(newFilePath);
|
||||
|
||||
cy.task('copyFile', {
|
||||
sourceDir: Cypress.env('DATA_FOLDER') + subFolder + '/',
|
||||
destDir: Cypress.env('DATA_WORKDIR') + newSubFolder + '/',
|
||||
fileName: fileName,
|
||||
destFileName: newFileName,
|
||||
});
|
||||
}
|
||||
|
||||
function logError(event) {
|
||||
|
@ -157,7 +151,7 @@ function logError(event) {
|
|||
/*
|
||||
* Loads the test document directly in Collabora Online.
|
||||
*/
|
||||
function loadDocumentNoIntegration(fileName, subFolder, isMultiUser) {
|
||||
function loadDocumentNoIntegration(filePath, isMultiUser) {
|
||||
cy.log('>> loadDocumentNoIntegration - start');
|
||||
|
||||
var URI = '';
|
||||
|
@ -166,17 +160,9 @@ function loadDocumentNoIntegration(fileName, subFolder, isMultiUser) {
|
|||
URI += 'http://' + Cypress.env('SERVER') + '/richproxy/proxy.php?req=';
|
||||
}
|
||||
|
||||
if (subFolder === undefined) {
|
||||
URI += '/browser/' +
|
||||
Cypress.env('WSD_VERSION_HASH') +
|
||||
'/debug.html?lang=en-US&file_path=' +
|
||||
Cypress.env('DATA_WORKDIR') + fileName;
|
||||
} else {
|
||||
URI += '/browser/' +
|
||||
Cypress.env('WSD_VERSION_HASH') +
|
||||
'/debug.html?lang=en-US&file_path=' +
|
||||
Cypress.env('DATA_WORKDIR') + subFolder + '/' + fileName;
|
||||
}
|
||||
URI += '/browser/' + Cypress.env('WSD_VERSION_HASH') + '/debug.html'
|
||||
+ '?lang=en-US'
|
||||
+ '&file_path=' + Cypress.env('DATA_WORKDIR') + filePath;
|
||||
|
||||
if (isMultiUser) {
|
||||
URI = URI.replace('debug.html', 'cypress-multiuser.html');
|
||||
|
@ -199,10 +185,11 @@ function loadDocumentNoIntegration(fileName, subFolder, isMultiUser) {
|
|||
/*
|
||||
* Loads the test document inside a Nextcloud integration
|
||||
*/
|
||||
function loadDocumentNextcloud(fileName, subFolder) {
|
||||
function loadDocumentNextcloud(filePath) {
|
||||
cy.log('>> loadDocumentNextcloud - start');
|
||||
cy.log('Param - fileName: ' + fileName);
|
||||
cy.log('Param - subFolder: ' + subFolder);
|
||||
cy.log('Param - filePath: ' + filePath);
|
||||
|
||||
var fileName = getFileName(filePath);
|
||||
|
||||
// Open test document
|
||||
cy.cGet('tr[data-file=\'' + fileName + '\']').click();
|
||||
|
@ -256,20 +243,20 @@ function hideNCFirstRunWizard() {
|
|||
|
||||
// Upload a test document into Nexcloud and open it.
|
||||
// Parameters:
|
||||
// fileName - test document file name (without path)
|
||||
// subFolder - sub folder inside data folder (e.g. writer, calc, impress)
|
||||
// filePath - test document file path
|
||||
// subsequentLoad - whether we load a test document for the first time in the
|
||||
// test case or not. It's important because we need to sign in
|
||||
// with the username + password only for the first time.
|
||||
function upLoadFileToNextCloud(fileName, subFolder, subsequentLoad) {
|
||||
function upLoadFileToNextCloud(filePath, subsequentLoad) {
|
||||
cy.log('>> upLoadFileToNextCloud - start');
|
||||
cy.log('Param - fileName: ' + fileName);
|
||||
cy.log('Param - subFolder: ' + subFolder);
|
||||
cy.log('Param - filePath: ' + filePath);
|
||||
cy.log('Param - subsequentLoad: ' + subsequentLoad);
|
||||
|
||||
// TODO: subsequentLoad appears to be unused
|
||||
// TODO: see if cy.session can handle login
|
||||
|
||||
var fileName = getFileName(filePath);
|
||||
|
||||
// Open local nextcloud installation
|
||||
var url = 'http://' + Cypress.env('SERVER') + 'nextcloud/index.php/apps/files';
|
||||
cy.visit(url);
|
||||
|
@ -319,19 +306,13 @@ function upLoadFileToNextCloud(fileName, subFolder, subsequentLoad) {
|
|||
cy.cGet('tr[data-file=\'' + fileName + '\']').should('not.exist');
|
||||
|
||||
// Upload test document
|
||||
var fileURI = '';
|
||||
if (subFolder === undefined) {
|
||||
fileURI += fileName;
|
||||
} else {
|
||||
fileURI += subFolder + '/' + fileName;
|
||||
}
|
||||
doIfOnDesktop(function() {
|
||||
cy.cGet('input#file_upload_start')
|
||||
.attachFile({ filePath: 'desktop/' + fileURI, encoding: 'binary' });
|
||||
.attachFile({ filePath: 'desktop/' + filePath, encoding: 'binary' });
|
||||
});
|
||||
doIfOnMobile(function() {
|
||||
cy.cGet('input#file_upload_start')
|
||||
.attachFile({ filePath: 'mobile/' + fileURI, encoding: 'binary' });
|
||||
.attachFile({ filePath: 'mobile/' + filePath, encoding: 'binary' });
|
||||
});
|
||||
|
||||
cy.cGet('#uploadprogressbar')
|
||||
|
@ -537,11 +518,13 @@ function clipboardTextShouldBeDifferentThan(text) {
|
|||
// We use this method to close the document, before step
|
||||
// on to the next test case.
|
||||
// Parameters:
|
||||
// fileName - test document name (we can check it on the admin console).
|
||||
// filePath - test document path (we can check it on the admin console).
|
||||
// testState - whether the test passed or failed before this method was called.
|
||||
function closeDocument(fileName) {
|
||||
function closeDocument(filePath) {
|
||||
cy.log('>> closeDocument - start');
|
||||
|
||||
var fileName = getFileName(filePath);
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
if (Cypress.env('IFRAME_LEVEL') === '2') {
|
||||
// Close the document, with the close button.
|
||||
|
@ -1167,6 +1150,32 @@ function copy() {
|
|||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* Get 'hello.ods' from 'calc/hello.ods'
|
||||
*/
|
||||
function getFileName(filePath) {
|
||||
var fileName;
|
||||
if (filePath.includes('/')) {
|
||||
fileName = filePath.substr(filePath.lastIndexOf('/')+1, filePath.length);
|
||||
} else {
|
||||
fileName = filePath;
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get 'calc' from 'calc/hello.ods'
|
||||
*/
|
||||
function getSubFolder(filePath) {
|
||||
var subFolder;
|
||||
if (filePath.includes('/')) {
|
||||
subFolder = filePath.substr(0, filePath.lastIndexOf('/'));
|
||||
} else {
|
||||
subFolder = '';
|
||||
}
|
||||
return subFolder;
|
||||
}
|
||||
|
||||
module.exports.setupDocument = setupDocument;
|
||||
module.exports.loadDocument = loadDocument;
|
||||
module.exports.setupAndLoadDocument = setupAndLoadDocument;
|
||||
|
@ -1212,3 +1221,5 @@ module.exports.getBlinkingCursorPosition = getBlinkingCursorPosition;
|
|||
module.exports.clickAt = clickAt;
|
||||
module.exports.setDummyClipboardForCopy = setDummyClipboardForCopy;
|
||||
module.exports.copy = copy;
|
||||
module.exports.getFileName = getFileName;
|
||||
module.exports.getSubFolder = getSubFolder;
|
||||
|
|
|
@ -31,7 +31,7 @@ describe('Interfering second user.', function() {
|
|||
.then(function(text) {
|
||||
|
||||
// We open the same document
|
||||
helper.loadDocument(text, getComponent(text));
|
||||
helper.loadDocument(getComponent(text) + '/' + text);
|
||||
});
|
||||
|
||||
cy.get('#toolbar-up #userlist', { timeout: Cypress.config('defaultCommandTimeout') * 2.0 })
|
||||
|
|
|
@ -98,10 +98,10 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('calc/annotation.ods');
|
||||
newFilePath = helper.setupAndLoadDocument('calc/annotation.ods');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
|
@ -111,7 +111,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation').should('exist');
|
||||
cy.cGet('#comment-container-1').then(function (element) {
|
||||
element[0].style.visibility = '';
|
||||
|
@ -136,7 +136,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#comment-container-1').trigger('mouseover');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation').should('exist');
|
||||
cy.cGet('#comment-container-1').then(function (element) {
|
||||
element[0].style.visibility = '';
|
||||
|
@ -155,7 +155,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation').should('not.exist');
|
||||
cy.cGet('.cool-annotation-autosavelabel').should('not.exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation').should('not.exist');
|
||||
});
|
||||
|
||||
|
@ -177,7 +177,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation').should('exist');
|
||||
cy.cGet('#comment-container-1').then(function (element) {
|
||||
element[0].style.visibility = '';
|
||||
|
@ -213,7 +213,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some other text, some text0');
|
||||
cy.cGet('#comment-container-1').should('exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation').should('exist');
|
||||
cy.cGet('#comment-container-1').then(function (element) {
|
||||
element[0].style.visibility = '';
|
||||
|
@ -249,7 +249,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
cy.cGet('#comment-container-1').should('exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation').should('exist');
|
||||
cy.cGet('#comment-container-1').then(function (element) {
|
||||
element[0].style.visibility = '';
|
||||
|
|
|
@ -6,9 +6,9 @@ var calcHelper = require('../../common/calc_helper');
|
|||
describe(['tagdesktop', 'tagproxy'], 'macro dialog tests', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
var newFileName = helper.setupDocument('macro.ods','calc');
|
||||
var newFilePath = helper.setupDocument('calc/macro.ods');
|
||||
// Skip document check to click through accept macro dialog first
|
||||
helper.loadDocument(newFileName,'calc',true);
|
||||
helper.loadDocument(newFilePath,true);
|
||||
acceptMacroExecution();
|
||||
helper.documentChecks();
|
||||
});
|
||||
|
|
|
@ -34,9 +34,9 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
//to fit csv jsdialog in window
|
||||
cy.viewport(1280, 960);
|
||||
|
||||
var newFileName = helper.setupDocument('testfile.csv','calc');
|
||||
var newFilePath = helper.setupDocument('calc/testfile.csv');
|
||||
// Skip document check to click through import csv dialog first
|
||||
helper.loadDocument(newFileName,'calc',true);
|
||||
helper.loadDocument(newFilePath,true);
|
||||
|
||||
cy.cGet('form.jsdialog-container.lokdialog_container').should('exist');
|
||||
cy.cGet('.ui-pushbutton.jsdialog.button-primary').click();
|
||||
|
@ -54,7 +54,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open xlsb file', { defaultCommandTimeout: 60000 }, function() {
|
||||
desktopHelper.openReadOnlyFile('testfile.xlsb');
|
||||
desktopHelper.openReadOnlyFile('calc/testfile.xlsb');
|
||||
|
||||
cy.cGet('#mobile-edit-button').should('be.visible').click();
|
||||
cy.cGet('#modal-dialog-switch-to-edit-mode-modal-overlay').should('be.visible');
|
||||
|
@ -74,13 +74,13 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open xltm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
desktopHelper.openReadOnlyFile('testfile.xltm');
|
||||
desktopHelper.openReadOnlyFile('calc/testfile.xltm');
|
||||
|
||||
cy.cGet('#mobile-edit-button').should('not.be.visible');
|
||||
});
|
||||
|
||||
it('Open xltx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
desktopHelper.openReadOnlyFile('testfile.xltm');
|
||||
desktopHelper.openReadOnlyFile('calc/testfile.xltm');
|
||||
|
||||
cy.cGet('#mobile-edit-button').should('not.be.visible');
|
||||
});
|
||||
|
|
|
@ -5,10 +5,10 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('calc/top_toolbar.ods');
|
||||
newFilePath = helper.setupAndLoadDocument('calc/top_toolbar.ods');
|
||||
desktopHelper.switchUIToCompact();
|
||||
calcHelper.clickOnFirstCell();
|
||||
});
|
||||
|
@ -17,7 +17,7 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
|||
cy.cGet('#bold').click();
|
||||
cy.cGet('#save').click();
|
||||
|
||||
helper.reloadDocument(newFileName,'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
|
||||
helper.setDummyClipboardForCopy();
|
||||
calcHelper.selectEntireSheet();
|
||||
|
|
|
@ -4,10 +4,10 @@ var helper = require('../../common/helper');
|
|||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'PDF View Tests', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('draw/pdf_page_up_down.pdf');
|
||||
newFilePath = helper.setupAndLoadDocument('draw/pdf_page_up_down.pdf');
|
||||
});
|
||||
|
||||
it('PDF page down', { env: { 'pdf-view': true } }, function() {
|
||||
|
@ -31,9 +31,9 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'PDF View Tests', function(
|
|||
// directly, rather save-as is used. This failed because
|
||||
// DocBroker expected to get ModifiedStatus=false, which
|
||||
// never happens with save-as and so we couldn't unload.
|
||||
helper.closeDocument(newFileName);
|
||||
helper.closeDocument(newFilePath);
|
||||
|
||||
// TODO: verify comment still exists
|
||||
// helper.reloadDocument(newFileName,'draw');
|
||||
// helper.reloadDocument(newFilePath);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -61,10 +61,10 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('impress/comment_switching.odp');
|
||||
newFilePath = helper.setupAndLoadDocument('impress/comment_switching.odp');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
|
@ -134,7 +134,7 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
|||
cy.cGet('#map').focus();
|
||||
cy.cGet('.cool-annotation-info-collapsed').should('be.not.visible');
|
||||
|
||||
helper.reloadDocument(newFileName, 'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-img').click();
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
|
@ -195,11 +195,11 @@ describe(['tagdesktop'], 'Comment Scrolling',function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
cy.viewport(2400, 600);
|
||||
newFileName = helper.setupAndLoadDocument('impress/comment_switching.odp');
|
||||
newFilePath = helper.setupAndLoadDocument('impress/comment_switching.odp');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
// TODO: skip sidebar detection on reload
|
||||
|
@ -217,7 +217,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
|
||||
});
|
||||
|
@ -233,7 +233,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
|
||||
});
|
||||
|
@ -249,7 +249,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.leaflet-marker-icon').should('not.exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('not.exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.leaflet-marker-icon').should('not.exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('not.exist');
|
||||
});
|
||||
|
@ -265,7 +265,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some other text, some text0');
|
||||
});
|
||||
|
@ -284,7 +284,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some other text, some text0');
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some other text, some text0');
|
||||
});
|
||||
|
@ -303,7 +303,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
|
||||
});
|
||||
|
@ -321,7 +321,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-modify-textarea-1').should('include.text', 'some text0');
|
||||
cy.cGet('#annotation-modify-textarea-1').should('include.text', 'some reply text');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-edit.reply-annotation').should('be.not.visible');
|
||||
cy.cGet('.cool-annotation-content > div').should('include.text','some reply text');
|
||||
});
|
||||
|
@ -344,7 +344,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-content > div').should('include.text','some text0');
|
||||
cy.cGet('.cool-annotation-content > div').should('include.text','some reply text');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-edit.reply-annotation').should('be.not.visible');
|
||||
cy.cGet('.cool-annotation-content > div').should('include.text','some reply text');
|
||||
});
|
||||
|
@ -366,7 +366,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-edit.reply-annotation').should('be.not.visible');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-edit.reply-annotation').should('be.not.visible');
|
||||
cy.cGet('.cool-annotation-content > div').should('have.text','some text0');
|
||||
});
|
||||
|
|
|
@ -11,8 +11,8 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
}
|
||||
|
||||
function before(fileName) {
|
||||
helper.setupAndLoadDocument('impress/' + fileName);
|
||||
function before(filePath) {
|
||||
helper.setupAndLoadDocument(filePath);
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
desktopHelper.hideSidebarIfVisible();
|
||||
|
@ -25,7 +25,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
}
|
||||
|
||||
it('Text fields.', function() {
|
||||
before('text_fields.odp');
|
||||
before('impress/text_fields.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -62,7 +62,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it('Custom background.', function() {
|
||||
before('slide-bitmap-background.odp');
|
||||
before('impress/slide-bitmap-background.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -79,7 +79,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it.skip('Leading spaces shorter than a text line.', function() {
|
||||
before('white-spaces.odp');
|
||||
before('impress/white-spaces.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -101,7 +101,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it('Leading spaces as long as a text line.', function() {
|
||||
before('white-spaces.odp');
|
||||
before('impress/white-spaces.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -125,7 +125,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it('Leading spaces longer than a text line.', function() {
|
||||
before('white-spaces.odp');
|
||||
before('impress/white-spaces.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -147,7 +147,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it('Internal spaces up to the end of the line.', function() {
|
||||
before('white-spaces.odp');
|
||||
before('impress/white-spaces.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -168,7 +168,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it('Internal spaces crossing two lines.', function() {
|
||||
before('white-spaces.odp');
|
||||
before('impress/white-spaces.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -190,7 +190,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it('Animation: Emphasis: Spin.', function() {
|
||||
before('anim-spin.odp');
|
||||
before('impress/anim-spin.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
@ -224,7 +224,7 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
});
|
||||
|
||||
it.skip('Animation: Emphasis: Grow and Shrink.', function() {
|
||||
before('anim-grow-and-shrink.odp');
|
||||
before('impress/anim-grow-and-shrink.odp');
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
/* global describe it cy require expect */
|
||||
var helper = require('../../common/helper');
|
||||
const { selectZoomLevel, openReadOnlyFile } = require('../../common/desktop_helper');
|
||||
const { selectZoomLevel } = require('../../common/desktop_helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
// const { selectTextShapeInTheCenter } = require('../../common/impress_helper');
|
||||
|
||||
describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file types', function() {
|
||||
|
||||
function before(fileName) {
|
||||
helper.setupAndLoadDocument('impress/' + fileName);
|
||||
function before(filePath) {
|
||||
helper.setupAndLoadDocument(filePath);
|
||||
|
||||
selectZoomLevel('50');
|
||||
|
||||
|
@ -54,43 +55,43 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
}
|
||||
|
||||
it('Open pptx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.pptx');
|
||||
before('impress/testfile.pptx');
|
||||
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open ppt file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.ppt');
|
||||
before('impress/testfile.ppt');
|
||||
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open pptm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.pptm');
|
||||
before('impress/testfile.pptm');
|
||||
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open pot file', { defaultCommandTimeout: 60000 }, function() {
|
||||
openReadOnlyFile('impress', 'testfile.pot');
|
||||
desktopHelper.openReadOnlyFile('impress/testfile.pot');
|
||||
});
|
||||
|
||||
it('Open potx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
openReadOnlyFile('impress', 'testfile.potx');
|
||||
desktopHelper.openReadOnlyFile('impress/testfile.potx');
|
||||
});
|
||||
|
||||
it('Open potm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
openReadOnlyFile('impress', 'testfile.potm');
|
||||
desktopHelper.openReadOnlyFile('impress/testfile.potm');
|
||||
});
|
||||
|
||||
it('Open fodp file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.fodp');
|
||||
before('impress/testfile.fodp');
|
||||
|
||||
assertData();
|
||||
});
|
||||
|
||||
it('Open ppsx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('testfile.ppsx');
|
||||
before('impress/testfile.ppsx');
|
||||
|
||||
assertData();
|
||||
});
|
||||
|
|
|
@ -59,10 +59,10 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
newFilePath = helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
// TODO: skip sidebar detection on reload
|
||||
|
@ -132,7 +132,7 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
|||
helper.typeIntoDocument('{home}');
|
||||
cy.cGet('.cool-annotation-info-collapsed').should('be.not.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('#optionscontainer div[id$="SidebarDeck.PropertyDeck"]').click(); // show sidebar.
|
||||
cy.cGet('.cool-annotation-img').click();
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
|
@ -143,11 +143,11 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
|||
});
|
||||
|
||||
describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
cy.viewport(1400, 600);
|
||||
newFileName = helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
newFilePath = helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
// TODO: skip sidebar detection on reload
|
||||
//cy.cGet('#optionscontainer div[id$="SidebarDeck.PropertyDeck"]').click(); // Hide sidebar.
|
||||
|
@ -160,7 +160,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
});
|
||||
|
@ -174,7 +174,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
});
|
||||
|
@ -188,7 +188,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#comment-container-1').should('not.exist');
|
||||
cy.cGet('.cool-annotation-autosavelabel').should('not.exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('not.exist');
|
||||
cy.cGet('#comment-container-1').should('not.exist');
|
||||
});
|
||||
|
@ -205,7 +205,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('.cool-annotation-edit.modify-annotation').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some other text, some text0');
|
||||
});
|
||||
|
@ -225,7 +225,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some other text, some text0');
|
||||
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some other text, some text0');
|
||||
});
|
||||
|
@ -246,7 +246,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
});
|
||||
|
@ -263,7 +263,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
|
||||
cy.cGet('#annotation-modify-textarea-2').should('be.visible');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-2').should('have.text','some reply text');
|
||||
});
|
||||
|
@ -286,7 +286,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
cy.cGet('#annotation-content-area-2').should('have.text','some reply text');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-2').should('have.text','some reply text');
|
||||
});
|
||||
|
@ -311,7 +311,7 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
cy.cGet('#comment-container-1 .cool-annotation-autosavelabel').should('be.not.visible');
|
||||
cy.cGet('#comment-container-2 .cool-annotation-autosavelabel').should('not.exist');
|
||||
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
cy.cGet('.cool-annotation-content-wrapper').should('exist');
|
||||
cy.cGet('#annotation-content-area-1').should('have.text','some text0');
|
||||
cy.cGet('#annotation-content-area-2').should('not.exist');
|
||||
|
|
|
@ -5,8 +5,8 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
|
||||
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.', function() {
|
||||
|
||||
function before(fileName) {
|
||||
helper.setupAndLoadDocument('writer/' + fileName);
|
||||
function before(filePath) {
|
||||
helper.setupAndLoadDocument(filePath);
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
desktopHelper.showStatusBarIfHidden();
|
||||
|
@ -49,7 +49,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
}
|
||||
|
||||
it('Activate and deactivate form field button.', function() {
|
||||
before('form_field.odt');
|
||||
before('writer/form_field.odt');
|
||||
|
||||
// We don't have the button by default
|
||||
buttonShouldNotExist();
|
||||
|
@ -76,7 +76,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Check drop down list.', function() {
|
||||
before('form_field.odt');
|
||||
before('writer/form_field.odt');
|
||||
|
||||
// Move the cursor next to the form field
|
||||
helper.moveCursor('right');
|
||||
|
@ -107,7 +107,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Test field editing', function() {
|
||||
before('form_field.odt');
|
||||
before('writer/form_field.odt');
|
||||
|
||||
// Move the cursor next to the form field
|
||||
helper.moveCursor('right');
|
||||
|
@ -143,7 +143,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Multiple form field button activation.', function() {
|
||||
before('multiple_form_fields.odt');
|
||||
before('writer/multiple_form_fields.odt');
|
||||
|
||||
// We don't have the button by default
|
||||
buttonShouldNotExist();
|
||||
|
@ -174,7 +174,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Test drop-down field with no selection.', function() {
|
||||
before('drop_down_form_field_noselection.odt');
|
||||
before('writer/drop_down_form_field_noselection.odt');
|
||||
|
||||
// Move the cursor next to the form field
|
||||
helper.moveCursor('right');
|
||||
|
@ -186,7 +186,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Test drop-down field with no items.', function() {
|
||||
before('drop_down_form_field_noitem.odt');
|
||||
before('writer/drop_down_form_field_noitem.odt');
|
||||
|
||||
// Move the cursor next to the form field
|
||||
helper.moveCursor('right');
|
||||
|
@ -202,7 +202,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Test field button after zoom.', function() {
|
||||
before('form_field.odt');
|
||||
before('writer/form_field.odt');
|
||||
|
||||
// Move the cursor next to the form field
|
||||
helper.moveCursor('right');
|
||||
|
@ -229,7 +229,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
});
|
||||
|
||||
it('Test dynamic font size.', function() {
|
||||
before('form_field.odt');
|
||||
before('writer/form_field.odt');
|
||||
|
||||
// Move the cursor next to the form field
|
||||
helper.moveCursor('right');
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* global describe it cy require */
|
||||
const { assertImageSize, openReadOnlyFile } = require('../../common/desktop_helper');
|
||||
const { assertImageSize } = require('../../common/desktop_helper');
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file types', function() {
|
||||
|
||||
|
@ -58,14 +59,14 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
});
|
||||
|
||||
it('Open dot file', { defaultCommandTimeout: 60000 }, function() {
|
||||
openReadOnlyFile('writer', 'testfile.dot');
|
||||
desktopHelper.openReadOnlyFile('writer/testfile.dot');
|
||||
});
|
||||
|
||||
it('Open dotm file', { defaultCommandTimeout: 60000 }, function() {
|
||||
openReadOnlyFile('writer', 'testfile.dotm');
|
||||
desktopHelper.openReadOnlyFile('writer/testfile.dotm');
|
||||
});
|
||||
|
||||
it('Open dotx file', { defaultCommandTimeout: 60000 }, function() {
|
||||
openReadOnlyFile('writer','testfile.dotx');
|
||||
desktopHelper.openReadOnlyFile('writer/testfile.dotx');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -5,10 +5,10 @@ var desktopHelper = require('../../common/desktop_helper');
|
|||
var writerHelper = require('../../common/writer_helper');
|
||||
|
||||
describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('writer/top_toolbar.odt');
|
||||
newFilePath = helper.setupAndLoadDocument('writer/top_toolbar.odt');
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
|
@ -285,7 +285,7 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
|||
it('Save.', function() {
|
||||
cy.cGet('.notebookbar > .unoBold > button').click();
|
||||
cy.cGet('.notebookbar-shortcuts-bar .unoSave').click();
|
||||
helper.reloadDocument(newFileName,'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
helper.setDummyClipboardForCopy();
|
||||
writerHelper.selectAllTextOfDoc();
|
||||
helper.copy();
|
||||
|
|
|
@ -4,10 +4,10 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Annotation Tests',function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('calc/annotation.ods');
|
||||
newFilePath = helper.setupAndLoadDocument('calc/annotation.ods');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
@ -18,7 +18,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Annotation Tests',function(
|
|||
cy.cGet('#comment-container-1').should('exist');
|
||||
mobileHelper.selectHamburgerMenuItem(['File', 'Save']);
|
||||
|
||||
helper.reloadDocument(newFileName, 'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
mobileHelper.enableEditingMobile();
|
||||
mobileHelper.openCommentWizard();
|
||||
helper.waitUntilIdle('#mobile-wizard-content', undefined);
|
||||
|
|
|
@ -8,7 +8,7 @@ var repairHelper = require('../../common/repair_document_helper');
|
|||
describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
||||
|
||||
it('Save', { defaultCommandTimeout: 60000 }, function() {
|
||||
var newFileName = helper.setupAndLoadDocument('calc/hamburger_menu.ods');
|
||||
var newFilePath = helper.setupAndLoadDocument('calc/hamburger_menu.ods');
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
calcHelper.selectEntireSheet();
|
||||
|
@ -22,7 +22,7 @@ describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
|||
mobileHelper.selectHamburgerMenuItem(['File', 'Save']);
|
||||
|
||||
// Reopen the document and check content.
|
||||
helper.reloadDocument(newFileName, 'calc');
|
||||
helper.reloadDocument(newFilePath);
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
calcHelper.selectEntireSheet();
|
||||
|
|
|
@ -10,7 +10,7 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
helper.setupAndLoadDocument('calc/nextcloud.ods');
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
helper.upLoadFileToNextCloud('image_to_insert.png', 'calc');
|
||||
helper.upLoadFileToNextCloud('calc/image_to_insert.png');
|
||||
nextcloudHelper.insertImageFromStorage('image_to_insert.png');
|
||||
|
||||
// TODO
|
||||
|
@ -19,7 +19,8 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
});
|
||||
|
||||
it('Save as.', function() {
|
||||
var newFileName = helper.setupAndLoadDocument('calc/nextcloud.ods');
|
||||
var newFilePath = helper.setupAndLoadDocument('calc/nextcloud.ods');
|
||||
var newFileName = helper.getFileName(newFilePath);
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
nextcloudHelper.saveFileAs('1' + newFileName);
|
||||
|
|
|
@ -4,10 +4,10 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile'], 'Annotation tests.', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('impress/annotation.odp');
|
||||
newFilePath = helper.setupAndLoadDocument('impress/annotation.odp');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
@ -17,7 +17,7 @@ describe(['tagmobile'], 'Annotation tests.', function() {
|
|||
|
||||
mobileHelper.selectHamburgerMenuItem(['File', 'Save']);
|
||||
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ var mobileHelper = require('../../common/mobile_helper');
|
|||
var repairHelper = require('../../common/repair_document_helper');
|
||||
|
||||
describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('impress/hamburger_menu.odp');
|
||||
newFilePath = helper.setupAndLoadDocument('impress/hamburger_menu.odp');
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
@ -35,7 +35,7 @@ describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
|||
mobileHelper.selectHamburgerMenuItem(['File', 'Save']);
|
||||
|
||||
// Reopen the document and check content.
|
||||
helper.reloadDocument(newFileName,'impress');
|
||||
helper.reloadDocument(newFilePath);
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
|
|
|
@ -13,13 +13,14 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
helper.setupAndLoadDocument('impress/nextcloud.odp');
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
helper.upLoadFileToNextCloud('image_to_insert.png', 'impress');
|
||||
helper.upLoadFileToNextCloud('impress/image_to_insert.png');
|
||||
nextcloudHelper.insertImageFromStorage('image_to_insert.png');
|
||||
cy.cGet('.leaflet-pane.leaflet-overlay-pane svg g').should('exist');
|
||||
});
|
||||
|
||||
it('Save as.', function() {
|
||||
var newFileName = helper.setupAndLoadDocument('impress/nextcloud.odp');
|
||||
var newFilePath = helper.setupAndLoadDocument('impress/nextcloud.odp');
|
||||
var newFileName = helper.getFileName(newFilePath);
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
nextcloudHelper.saveFileAs('1' + newFileName);
|
||||
|
|
|
@ -4,10 +4,10 @@ var helper = require('../../common/helper');
|
|||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
||||
describe(['tagmobile'], 'Annotation tests.', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
newFilePath = helper.setupAndLoadDocument('writer/annotation.odt');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
@ -15,7 +15,7 @@ describe(['tagmobile'], 'Annotation tests.', function() {
|
|||
it('Saving comment.', { defaultCommandTimeout: 60000 }, function() {
|
||||
mobileHelper.insertComment();
|
||||
mobileHelper.selectHamburgerMenuItem(['File', 'Save']);
|
||||
helper.reloadDocument(newFileName, 'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
mobileHelper.enableEditingMobile();
|
||||
mobileHelper.openCommentWizard();
|
||||
helper.waitUntilIdle('#mobile-wizard-content', undefined);
|
||||
|
|
|
@ -6,14 +6,14 @@ var writerHelper = require('../../common/writer_helper');
|
|||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Text cursor tests.', function() {
|
||||
|
||||
function before(fileName) {
|
||||
helper.setupAndLoadDocument('writer/' + fileName);
|
||||
function before(filePath) {
|
||||
helper.setupAndLoadDocument(filePath);
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
}
|
||||
|
||||
it('Extensive cursor movements.', function() {
|
||||
before('cursor.odt');
|
||||
before('writer/cursor.odt');
|
||||
|
||||
for (var i = 0; i < 5; i++) {
|
||||
helper.moveCursor('right');
|
||||
|
@ -24,7 +24,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Text cursor tests.', functi
|
|||
});
|
||||
|
||||
it('View jumps by cursor movement.', function() {
|
||||
before('cursor.odt');
|
||||
before('writer/cursor.odt');
|
||||
|
||||
for (var i = 0; i < 5; i++) {
|
||||
helper.moveCursor('end');
|
||||
|
@ -33,7 +33,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Text cursor tests.', functi
|
|||
});
|
||||
|
||||
it('Cursor is visible after text selection.', function() {
|
||||
before('cursor.odt');
|
||||
before('writer/cursor.odt');
|
||||
writerHelper.selectAllTextOfDoc();
|
||||
cy.cGet('.blinking-cursor').should('be.visible');
|
||||
// Blinking cursor and so the view should be at the end of the text selection.
|
||||
|
@ -42,7 +42,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Text cursor tests.', functi
|
|||
});
|
||||
|
||||
it('Move cursor through table.', function() {
|
||||
before('cursor_in_table.odt');
|
||||
before('writer/cursor_in_table.odt');
|
||||
|
||||
for (var i = 0; i < 5; i++) {
|
||||
helper.moveCursor('down');
|
||||
|
|
|
@ -6,10 +6,10 @@ var writerHelper = require('../../common/writer_helper');
|
|||
var repairHelper = require('../../common/repair_document_helper');
|
||||
|
||||
describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
||||
var newFileName;
|
||||
var newFilePath;
|
||||
|
||||
beforeEach(function() {
|
||||
newFileName = helper.setupAndLoadDocument('writer/hamburger_menu.odt');
|
||||
newFilePath = helper.setupAndLoadDocument('writer/hamburger_menu.odt');
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
@ -47,7 +47,7 @@ describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
|||
helper.expectTextForClipboard('new');
|
||||
mobileHelper.selectHamburgerMenuItem(['File', 'Save']);
|
||||
// Reopen the document and check content.
|
||||
helper.reloadDocument(newFileName, 'writer');
|
||||
helper.reloadDocument(newFilePath);
|
||||
mobileHelper.enableEditingMobile();
|
||||
writerHelper.selectAllTextOfDoc();
|
||||
helper.expectTextForClipboard('new');
|
||||
|
|
|
@ -10,7 +10,7 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
helper.setupAndLoadDocument('writer/nextcloud.odt');
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
helper.upLoadFileToNextCloud('image_to_insert.png', 'writer');
|
||||
helper.upLoadFileToNextCloud('writer/image_to_insert.png');
|
||||
nextcloudHelper.insertImageFromStorage('image_to_insert.png');
|
||||
|
||||
cy.get('.leaflet-pane.leaflet-overlay-pane svg g.Graphic')
|
||||
|
@ -18,7 +18,8 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
});
|
||||
|
||||
it('Save as.', function() {
|
||||
var newFileName = helper.setupAndLoadDocument('writer/nextcloud.odt');
|
||||
var newFilePath = helper.setupAndLoadDocument('writer/nextcloud.odt');
|
||||
var newFileName = helper.getFileName(newFilePath);
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
||||
nextcloudHelper.saveFileAs('1' + newFileName);
|
||||
|
|
|
@ -6,8 +6,8 @@ var writerHelper = require('../../common/writer_helper');
|
|||
|
||||
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / layout via mobile wizard.', function() {
|
||||
|
||||
function before(fileName) {
|
||||
helper.setupAndLoadDocument('writer/' + fileName);
|
||||
function before(filePath) {
|
||||
helper.setupAndLoadDocument(filePath);
|
||||
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
@ -30,7 +30,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
}
|
||||
|
||||
it('Insert row before.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.cGet('.unoInsertRowsBefore').click();
|
||||
|
@ -48,7 +48,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Insert row after.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.cGet('.unoInsertRowsAfter').click();
|
||||
|
@ -66,7 +66,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Insert column before.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.cGet('.unoInsertColumnsBefore').click();
|
||||
|
@ -83,7 +83,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Insert column after.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.cGet('.unoInsertColumnsAfter').click();
|
||||
|
@ -100,7 +100,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Delete row.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.cGet('.unoDeleteRows').click();
|
||||
|
@ -119,7 +119,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Delete column.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
// Insert column first
|
||||
openTablePanel();
|
||||
cy.cGet('.unoInsertColumnsBefore').click();
|
||||
|
@ -132,7 +132,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Delete table.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
openTablePanel();
|
||||
cy.cGet('.unoDeleteTable').click();
|
||||
cy.cGet('.leaflet-marker-icon.table-column-resize-marker').should('not.exist');
|
||||
|
@ -146,7 +146,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Merge cells.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
// Select 2x2 part of the table.
|
||||
helper.moveCursor('down', 'shift');
|
||||
|
@ -173,7 +173,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Change row height.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.wait(500);
|
||||
|
@ -185,7 +185,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Change column width.', function() {
|
||||
before('table_properties.odt');
|
||||
before('writer/table_properties.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
cy.wait(500);
|
||||
|
@ -196,7 +196,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Set minimal row height.', function() {
|
||||
before('table_with_text.odt');
|
||||
before('writer/table_with_text.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
// Select full table (3x2)
|
||||
helper.moveCursor('down', 'shift');
|
||||
|
@ -213,7 +213,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Set optimal row height.', function() {
|
||||
before('table_with_text.odt');
|
||||
before('writer/table_with_text.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
openTablePanel();
|
||||
selectFullTable();
|
||||
|
@ -230,7 +230,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Distribute rows.', function() {
|
||||
before('table_with_text.odt');
|
||||
before('writer/table_with_text.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
||||
// Select full table (3x2)
|
||||
|
@ -258,7 +258,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Set minimal column width.', function() {
|
||||
before('table_with_text.odt');
|
||||
before('writer/table_with_text.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
||||
// Select full table (3x2)
|
||||
|
@ -274,7 +274,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Set optimal column width.', function() {
|
||||
before('table_with_text.odt');
|
||||
before('writer/table_with_text.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
||||
// Select full table (3x2)
|
||||
|
@ -292,7 +292,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change table properties / l
|
|||
});
|
||||
|
||||
it('Distribute columns.', function() {
|
||||
before('table_with_text.odt');
|
||||
before('writer/table_with_text.odt');
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
||||
// Select full table (3x2)
|
||||
|
|
Loading…
Reference in New Issue