Cypress: Remove afterEach/afterAll
Cypress recommends NOT cleaning up after tests https://docs.cypress.io/guides/references/best-practices#Using-after-Or-afterEach-Hooks Open documents should not affect other tests Files will be closed automatically by the server anyways Tests with more strict requirements can explicitly close documents before, during, or after those tests This is necessary to support beforeAll cleanup Half of tests were verifying the wrong filename was closed anyways Signed-off-by: Neil Guertin <neil.guertin@collabora.com> Change-Id: Iab458963a3fbfe87f732dc97140704c2d0ef53d4pull/8812/head
parent
8510db5560
commit
7cc0c1996e
|
@ -545,12 +545,6 @@ function beforeAll(fileName, subFolder, noFileCopy, isMultiUser, subsequentLoad,
|
|||
return loadTestDoc(fileName, subFolder, noFileCopy, isMultiUser, subsequentLoad, hasInteractionBeforeLoad, noRename);
|
||||
}
|
||||
|
||||
// testState no longer used, but not removed from all calls to afterAll yet
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function afterAll(fileName, testState) {
|
||||
closeDocument(fileName);
|
||||
}
|
||||
|
||||
// This method is intended to call after each test case.
|
||||
// We use this method to close the document, before step
|
||||
// on to the next test case.
|
||||
|
@ -1197,7 +1191,6 @@ module.exports.matchClipboardText = matchClipboardText;
|
|||
module.exports.clipboardTextShouldBeDifferentThan = clipboardTextShouldBeDifferentThan;
|
||||
module.exports.closeDocument = closeDocument;
|
||||
module.exports.reload = reload;
|
||||
module.exports.afterAll = afterAll;
|
||||
module.exports.initAliasToNegative = initAliasToNegative;
|
||||
module.exports.doIfInCalc = doIfInCalc;
|
||||
module.exports.doIfInImpress = doIfInImpress;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it require cy afterEach beforeEach */
|
||||
/* global describe it require cy beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
|
|||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert',function() {
|
||||
desktopHelper.insertComment();
|
||||
|
||||
|
@ -112,10 +108,6 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert autosave',function() {
|
||||
desktopHelper.insertComment(undefined, false);
|
||||
cy.cGet('#map').focus();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'AutoFilter', function() {
|
|||
calcHelper.assertSheetContents(['Cypress Test', 'Status', 'Test 1', 'Pass', 'Test 2', 'Fail', 'Test 3', 'Pass', 'Test 4', '', 'Test 5', 'Fail'], true);
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function toggleAutofilter() {
|
||||
//enable/disable autofilter
|
||||
cy.cGet('#menu-data').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Calc bottom bar tests.', f
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Bottom tool bar.', function() {
|
||||
cy.cGet('#map').focus();
|
||||
calcHelper.clickOnFirstCell();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect Cypress */
|
||||
/* global describe it cy beforeEach require expect Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop'], 'Change cell appearance.', function() {
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Apply background color', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach expect require afterEach */
|
||||
/* global describe it cy beforeEach expect require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Test jumping on large cell
|
|||
cy.cGet('#sidebar').click({force: true});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('No jump on long merged cell', function() {
|
||||
desktopHelper.assertScrollbarPosition('horizontal', 205, 315);
|
||||
calcHelper.clickOnFirstCell(true, false, false);
|
||||
|
@ -36,10 +32,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Test jumping on large cell
|
|||
cy.cGet('#sidebar').click({force: true});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('No jump on long merged cell with split panes', function() {
|
||||
desktopHelper.assertScrollbarPosition('horizontal', 270, 390);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Calc clipboard tests.', fu
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function setDummyClipboard(type, content, image = false, fail = false) {
|
||||
cy.window().then(win => {
|
||||
var app = win['0'].app;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach expect Cypress*/
|
||||
/* global describe it cy require beforeEach expect Cypress*/
|
||||
var helper = require('../../common/helper');
|
||||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function(
|
|||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Delete Text', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop'], 'Calc focus tests', function() {
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Formula-bar focus', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
// Select first cell
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// UPDATE_SCREENSHOT needs to be true otherwise cypress will not run the spec file and
|
||||
// update the screenshot
|
||||
|
||||
/* global describe it cy require Cypress afterEach beforeEach */
|
||||
/* global describe it cy require Cypress beforeEach */
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
||||
|
@ -16,10 +16,6 @@ describe(['tagscreenshot'], 'Help dialog update', function() {
|
|||
helper.beforeAll(testFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Chart selected sidebar open', function() {
|
||||
calcHelper.selectFirstColumn();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var { insertImage, deleteImage, assertImageSize } = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop'], 'Image Operation Tests', function() {
|
|||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert/Delete Image',function() {
|
||||
insertImage('calc');
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
|
||||
/* global describe it cy require expect afterEach beforeEach */
|
||||
/* global describe it cy require expect beforeEach */
|
||||
var helper = require('../../common/helper');
|
||||
|
||||
describe(['tagdesktop'], 'JSDialog unit test', function() {
|
||||
|
@ -10,10 +10,6 @@ describe(['tagdesktop'], 'JSDialog unit test', function() {
|
|||
helper.beforeAll(testFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('JSDialog popup dialog', function() {
|
||||
cy.getFrameWindow()
|
||||
.its('L')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -19,10 +19,6 @@ describe(['tagdesktop', 'tagproxy'], 'macro dialog tests', function() {
|
|||
helper.checkIfDocIsLoaded();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function expandEntryInTreeView(entryText) {
|
||||
cy.cGet().contains('.jsdialog.ui-treeview-cell', entryText)
|
||||
.siblings('.ui-treeview-expander')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var { insertImage, deleteImage } = require('../../common/desktop_helper');
|
||||
|
@ -14,10 +14,6 @@ describe.skip(['tagdesktop'], 'Navigator tests.', function () {
|
|||
cy.cGet('#menu-navigator').click();
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Jump to element. Navigator -> Document', function() {
|
||||
// Doubleclick several items, and check if the view is jumed to there
|
||||
cy.cGet('#contentbox').contains('.jsdialog.sidebar.ui-treeview-cell-text', 'Comment1').dblclick();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require Cypress afterEach */
|
||||
/* global describe it cy require Cypress */
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
const { insertImage } = require('../../common/desktop_helper');
|
||||
|
@ -24,10 +24,6 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
cy.cGet('#PermissionMode').should('be.visible').should('have.text', ' Read-only ');
|
||||
}
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function assertData() {
|
||||
var expectedData = [
|
||||
'0', 'First Name', 'Last Name', 'Gender', 'Country', 'Age', 'Date', 'Id',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagdesktop'], 'Row Column Operation', function() {
|
|||
cy.cGet('#toolbar-up .ui-scroll-right').click();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert/Delete row' , function() {
|
||||
//Insert row above
|
||||
cy.cGet('#home-insert-columns-before-button').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document',
|
|||
cy.cGet('#sidebar').click({force: true});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Scrolling to bottom/top', function() {
|
||||
desktopHelper.assertScrollbarPosition('vertical', 19, 21);
|
||||
desktopHelper.pressKey(3,'pagedown');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var searchHelper = require('../../common/search_helper');
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Searching via search bar.'
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
searchHelper.typeIntoSearchField('a');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sheet Operations.', functi
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert sheet', function () {
|
||||
calcHelper.assertNumberofSheets(1);
|
||||
cy.cGet('#spreadsheet-toolbar #insertsheet').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -10,10 +10,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sheet switching tests', fu
|
|||
helper.beforeAll(testFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
/* switch.ods has 2 sheets, 1st with data in G45, 2nd with data in F720*/
|
||||
|
||||
it('Check view position on sheet switch', function() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
|
||||
|
@ -10,10 +10,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Calc sidebar dialog image
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Sidebar image caching', function() {
|
||||
|
||||
// Just go through the cells A1:30. Each cell has a
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function
|
|||
}
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Selected sheet.', function() {
|
||||
cy.cGet('#StatusDocPos').should('have.text', 'Sheet 1 of 2');
|
||||
cy.cGet('#spreadsheet-tab1').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect */
|
||||
/* global describe it cy beforeEach require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
|||
calcHelper.clickOnFirstCell();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Save.', { defaultCommandTimeout: 60000 }, function() {
|
||||
cy.cGet('#bold').click();
|
||||
cy.cGet('#save').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Editing Operations', funct
|
|||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function undo() {
|
||||
helper.typeIntoDocument('Hello World');
|
||||
helper.typeIntoDocument('{ctrl}z');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagdesktop'], 'Scroll through document, insert/delete items', fu
|
|||
cy.cGet('#menu-navigator').click();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function checkIfItemNotExist(itemName) {
|
||||
cy.cGet('#tree').contains('.jsdialog.sidebar.ui-treeview-cell-text', itemName).should('not.exist');
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'PDF View Tests', function(
|
|||
testFileName = helper.beforeAll(origTestFileName, 'draw');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('PDF page down', { env: { 'pdf-view': true } }, function() {
|
||||
cy.cGet('#map').type('{pagedown}'); // Not sure if first button press should change the page.
|
||||
cy.cGet('#map').type('{pagedown}');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach Cypress */
|
||||
/* global describe it cy require beforeEach Cypress */
|
||||
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
var helper = require('../../common/helper');
|
||||
|
@ -23,10 +23,6 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
|
|||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert', function() {
|
||||
desktopHelper.insertComment();
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
|
@ -82,10 +78,6 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
|||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert', function() {
|
||||
desktopHelper.insertComment();
|
||||
cy.cGet('.leaflet-marker-icon').should('exist');
|
||||
|
@ -165,10 +157,6 @@ describe(['tagdesktop'], 'Comment Scrolling',function() {
|
|||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('no comment or one comment', function() {
|
||||
cy.cGet('.leaflet-control-scroll-down').should('not.exist');
|
||||
desktopHelper.insertComment();
|
||||
|
@ -227,10 +215,6 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert autosave', function() {
|
||||
desktopHelper.insertComment(undefined, false);
|
||||
cy.cGet('#map').focus();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties
|
|||
impressHelper.selectTextShapeInTheCenter();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Apply left/right alignment on selected text.', function() {
|
||||
cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition')
|
||||
.should('have.attr', 'x', '1400');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach expect Cypress */
|
||||
/* global describe it cy require beforeEach expect Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function(
|
|||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Delete Text', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
cy.cGet('.leaflet-layer').dblclick('center');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe expect it cy beforeEach require afterEach Cypress */
|
||||
/* global describe expect it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -39,10 +39,6 @@ describe(['taga11yenabled'], 'Editable area - Basic typing and caret moving', fu
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it.skip('Editing top text shape', function () {
|
||||
// select shape and activate editing
|
||||
selectTextShape(1);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach Cypress expect */
|
||||
/* global describe it cy require Cypress expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -26,10 +26,6 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Fullscreen Presentati
|
|||
cy.cGet('#menu-fullscreen-presentation > a').click();
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Text fields.', function() {
|
||||
before('text_fields.odp');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it require cy afterEach beforeEach */
|
||||
/* global describe it require cy beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var { insertImage, deleteImage, assertImageSize } = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop'], 'Image Operation Tests', function() {
|
|||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert/Delete image',function() {
|
||||
desktopHelper.switchUIToNotebookbar();
|
||||
insertImage();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
|
||||
|
@ -9,10 +9,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'JSDialog Tests', function(
|
|||
helper.beforeAll(testFileName, 'impress');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Check disabled state in animation sidebar', function() {
|
||||
// open animation deck
|
||||
cy.cGet('#options-custom-animation-button').should('not.have.class', 'selected');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagdesktop'], 'Scroll through document, insert/delete items', fu
|
|||
cy.cGet('#menu-navigator').click();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function checkIfItemNotExist(itemName) {
|
||||
cy.cGet('#tree').contains('.jsdialog.sidebar.ui-treeview-cell-text', itemName).should('not.exist');
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require expect afterEach */
|
||||
/* global describe it cy require expect */
|
||||
var helper = require('../../common/helper');
|
||||
const { selectZoomLevel, openReadOnlyFile } = require('../../common/desktop_helper');
|
||||
// const { selectTextShapeInTheCenter } = require('../../common/impress_helper');
|
||||
|
@ -19,10 +19,6 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
cy.cGet('#modifypage').click();
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function assertData() {
|
||||
//select all the content of doc
|
||||
helper.typeIntoDocument('{ctrl}{a}');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect */
|
||||
/* global describe it cy beforeEach require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document',
|
|||
desktopHelper.selectZoomLevel('200');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function clickOnTheCenter() {
|
||||
cy.cGet('#document-container')
|
||||
.then(function(items) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy expect beforeEach require afterEach*/
|
||||
/* global describe it cy expect beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var searchHelper = require('../../common/search_helper');
|
||||
|
@ -11,10 +11,6 @@ describe.skip(['tagdesktop'], 'Searching via search bar' ,function() {
|
|||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
searchHelper.typeIntoSearchField('a');
|
||||
searchHelper.searchNext();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sidebar Tests', function()
|
|||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it.skip('Switch to slide transition Deck', function() {
|
||||
cy.cGet('#slidechangewindow .w2ui-button').should('not.have.class', 'checked');
|
||||
cy.cGet('#layoutvalueset').should('be.visible');
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
/* global describe it cy require expect afterEach beforeEach*/
|
||||
/* global describe it cy require expect beforeEach*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Slide operations', functio
|
|||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Add slides', function() {
|
||||
cy.cGet('#presentation-toolbar #insertpage').click();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function
|
|||
}
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Selected slide.', function() {
|
||||
cy.cGet('#SlideStatus').should('have.text', 'Slide 1 of 2');
|
||||
cy.cGet('#toolbar-down #next').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe cy beforeEach it expect require afterEach */
|
||||
/* global describe cy beforeEach it expect require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop'], 'Table operations', function() {
|
|||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function selectOptionNotebookbar(optionId) {
|
||||
var optionButton = cy.cGet(optionId);
|
||||
// It takes time for the ui to enable the various table toolbar buttons after
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -19,10 +19,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct
|
|||
}
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Apply bold on text shape.', function() {
|
||||
impressHelper.selectTextShapeInTheCenter();
|
||||
cy.cGet('#bold').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it beforeEach require afterEach*/
|
||||
/* global describe it beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagdesktop'], 'Editing Operations', function() {
|
|||
impressHelper.selectTextOfShape(false);
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function undo() {
|
||||
helper.typeIntoDocument('Hello World');
|
||||
impressHelper.selectTextOfShape();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var { selectZoomLevel } = require('../../common/desktop_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
|
|||
selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert', function() {
|
||||
desktopHelper.insertComment();
|
||||
|
||||
|
@ -74,10 +70,6 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
|
|||
cy.cGet('#optionscontainer div[id$="SidebarDeck.PropertyDeck"]').click(); // Hide sidebar.
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert', function() {
|
||||
desktopHelper.insertComment();
|
||||
|
||||
|
@ -165,10 +157,6 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
|
|||
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert autosave', function() {
|
||||
desktopHelper.insertComment(undefined, false);
|
||||
cy.cGet('#map').focus();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global cy expect describe it require afterEach beforeEach */
|
||||
/* global cy expect describe it require beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
|
||||
|
@ -11,10 +11,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Complex image operation te
|
|||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('tile image validation test',function() {
|
||||
cy.window().then(win => {
|
||||
if (win.imgDatas) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require expect afterEach*/
|
||||
/* global describe it cy require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
|
||||
|
@ -9,10 +9,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Clipboard operations.', fu
|
|||
testFileName = helper.beforeAll(filename, 'writer');
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Copy and Paste text.', function() {
|
||||
before('copy_paste.odt');
|
||||
// Select some text
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['taga11ydisabled'], 'Editable area [a11y disabled] - Empty paragraph',
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Typing in an empty paragraph', function () {
|
||||
// initial position
|
||||
ceHelper.checkHTMLContent('');
|
||||
|
@ -55,10 +51,6 @@ describe(['taga11ydisabled'], 'Editable area [a11y disabled] - Basic typing', fu
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Typing at paragraph beginning', function () {
|
||||
ceHelper.type('Hello World');
|
||||
ceHelper.checkPlainContent('Hello World');
|
||||
|
@ -135,10 +127,6 @@ describe(['taga11yenabled'], 'Editable area - Empty paragraph', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Typing in an empty paragraph', function () {
|
||||
// initial position
|
||||
ceHelper.checkHTMLContent('');
|
||||
|
@ -182,10 +170,6 @@ describe(['taga11yenabled'], 'Editable area - Basic typing and caret moving', fu
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Moving inside paragraph', function () {
|
||||
// initial position
|
||||
ceHelper.checkHTMLContent('');
|
||||
|
@ -498,10 +482,6 @@ describe(['taga11yenabled'], 'Editable area - Inner selection', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Selecting inside paragraph', function () {
|
||||
ceHelper.type('Hello World');
|
||||
ceHelper.checkPlainContent('Hello World');
|
||||
|
@ -657,10 +637,6 @@ describe(['taga11yenabled'], 'Editable area - Multi-paragraph selection', functi
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Selection starts in previous paragraph', function () {
|
||||
ceHelper.type('Hello World');
|
||||
ceHelper.type('{enter}');
|
||||
|
@ -812,10 +788,6 @@ describe(['taga11yenabled'], 'Editable area - Empty selection', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Typing <backspace> with empty selection', function () {
|
||||
ceHelper.type('Green red');
|
||||
ceHelper.checkPlainContent('Green red');
|
||||
|
@ -898,10 +870,6 @@ describe(['taga11yenabled'], 'Editable area - Undo/Redo', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Undo/Redo after typing', function () {
|
||||
ceHelper.type('Hello World');
|
||||
ceHelper.checkPlainContent('Hello World');
|
||||
|
@ -978,10 +946,6 @@ describe(['taga11yenabled'], 'Editable area - More typing', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Typing after undo command', function() {
|
||||
ceHelper.type('Hello World');
|
||||
ceHelper.checkPlainContent('Hello World');
|
||||
|
@ -1070,10 +1034,6 @@ describe(['taga11yenabled'], 'Editable area - Unordered lists', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Check content', function () {
|
||||
ceHelper.checkPlainContent('A normal paragraph.');
|
||||
ceHelper.moveCaret('down');
|
||||
|
@ -1258,10 +1218,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Editing - Basic typing', f
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function selectAndCheckText(upTo, expectedText) {
|
||||
var backTo = upTo === 'home' ? 'end' : 'home';
|
||||
ceHelper.moveCaret(upTo, 'shift');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var writerHelper = require('../../common/writer_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'File Property Tests', func
|
|||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Add File Description.', function() {
|
||||
writerHelper.openFileProperties();
|
||||
cy.cGet('#tabcontrol-2').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop', 'tagproxy'], 'Focus tests', function() {
|
|||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Basic document focus.', function() {
|
||||
// Document has the focus after load
|
||||
helper.assertFocus('className', 'clipboard');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach expect Cypress */
|
||||
/* global describe it cy require expect Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -19,10 +19,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Form field button tests.',
|
|||
cy.cGet('.blinking-cursor')
|
||||
.should('be.visible');
|
||||
}
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function buttonShouldNotExist() {
|
||||
cy.cGet('.form-field-frame').should('not.exist');
|
||||
cy.cGet('.form-field-button').should('not.exist');
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// UPDATE_SCREENSHOT needs to be true otherwise cypress will not run the spec file and
|
||||
// update the screenshot
|
||||
|
||||
/* global describe it cy require afterEach beforeEach Cypress*/
|
||||
/* global describe it cy require beforeEach Cypress*/
|
||||
|
||||
const { hideSidebar } = require('../../common/desktop_helper');
|
||||
var helper = require('../../common/helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagscreenshot'], 'Help dialog screenshot updation', function() {
|
|||
helper.beforeAll(testFileName, 'writer');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function copyScreenshot(fileName) {
|
||||
cy.task('copyFile', {
|
||||
sourceDir: Cypress.env('SCREENSHOT_FOLDER')+ '/writer/help_dialog_update_spec.js/',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it require cy afterEach beforeEach */
|
||||
/* global describe it require cy beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var { insertImage, deleteImage, assertImageSize } = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagdesktop'], 'Image Operation Tests', function() {
|
|||
desktopHelper.switchUIToNotebookbar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert Image',function() {
|
||||
insertImage();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach expect require afterEach*/
|
||||
/* global describe it cy beforeEach expect require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Invalidation tests.', func
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
// Clicking in an empty header area shouldn't invalidate anything
|
||||
it('Click Empty Header.', function() {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -13,10 +13,6 @@ describe.skip(['tagdesktop'], 'Scroll through document, modify heading', functio
|
|||
cy.cGet('#menu-navigator').click();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Jump to element. Navigator -> Document', function() {
|
||||
// Expand Tables, Frames, Images
|
||||
// Note click()/dblclick() scrolls the contenttree even if it would be not needed to click
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -19,10 +19,6 @@ describe(['tagdesktop'], 'Notebookbar tests.', function() {
|
|||
writerHelper.selectAllTextOfDoc();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Apply bold font from dropdown in Format tab', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
cy.cGet('.notebookbar #Format-tab-label').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach */
|
||||
/* global describe it cy require */
|
||||
const { assertImageSize, openReadOnlyFile } = require('../../common/desktop_helper');
|
||||
var helper = require('../../common/helper');
|
||||
|
||||
|
@ -12,10 +12,6 @@ describe.skip(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Open different file t
|
|||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function assertData() {
|
||||
//select all the content of doc
|
||||
helper.typeIntoDocument('{shift}{end}');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document',
|
|||
cy.cGet('#sidebar').click({force: true});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Scrolling to bottom/top', function() {
|
||||
desktopHelper.selectZoomLevel('40');
|
||||
helper.typeIntoDocument('{ctrl}{home}');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var searchHelper = require('../../common/search_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Searching via search bar'
|
|||
testFileName = helper.beforeAll(origTestFileName, 'writer');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
searchHelper.typeIntoSearchField('a');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function
|
|||
}
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Text selection.', function() {
|
||||
cy.cGet('body').contains('#toolbar-down #StateWordCount', '2 words, 9 characters');
|
||||
helper.moveCursor('right', 'shift');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
// var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['taga11yenabled'], 'Table accessibility', function() {
|
|||
cy.cGet('div.clipboard').as('clipboard');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function checkCellDescription(expectedDescription) {
|
||||
cy.wait(400);
|
||||
cy.get('@clipboard').should('have.attr', 'aria-description', expectedDescription);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach Cypress require afterEach expect */
|
||||
/* global describe it cy beforeEach Cypress require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Table operations', functio
|
|||
desktopHelper.selectZoomLevel('70');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function selectFullTable() {
|
||||
helper.moveCursor('down');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress */
|
||||
/* global describe it cy beforeEach require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -19,10 +19,6 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
|||
writerHelper.selectAllTextOfDoc();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function refreshCopyPasteContainer() {
|
||||
helper.typeIntoDocument('{rightArrow}');
|
||||
writerHelper.selectAllTextOfDoc();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach Cypress expect */
|
||||
/* global describe it cy beforeEach require Cypress expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
const desktopHelper = require('../../common/desktop_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Track Changes', function (
|
|||
desktopHelper.selectZoomLevel('50');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function confirmChange(action) {
|
||||
cy.cGet('#menu-editmenu').click();
|
||||
cy.cGet('#menu-changesmenu').should($el => { expect(Cypress.dom.isDetached($el)).to.eq(false); }).click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global cy describe it beforeEach require afterEach*/
|
||||
/* global cy describe it beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var repairHelper = require('../../common/repair_document_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Editing Operations', funct
|
|||
desktopHelper.switchUIToCompact();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function undo() {
|
||||
helper.typeIntoDocument('Hello World');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagdesktop'], 'Idle', function() {
|
|||
testFileName = helper.beforeAll(origTestFileName, 'calc');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function checkIfIsInteractiveAgain() {
|
||||
calcHelper.dblClickOnFirstCell();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach Cypress require afterEach expect*/
|
||||
/* global describe it cy beforeEach Cypress require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change alignment setti
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function getTextEndPosForFirstCell() {
|
||||
calcHelper.dblClickOnFirstCell();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Annotation Tests',function(
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Saving comment.', function() {
|
||||
mobileHelper.insertComment();
|
||||
cy.cGet('#comment-container-1').should('exist');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -20,10 +20,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font changes.', funct
|
|||
mobileHelper.openTextPropertiesPanel();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Apply bold.', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
cy.cGet('#Bold').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'AutoFilter', function() {
|
|||
calcHelper.assertSheetContents(['Cypress Test', 'Status', 'Test 1', 'Pass', 'Test 2', 'Fail', 'Test 3', 'Pass', 'Test 4', '', 'Test 5', 'Fail'], true);
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Sort by ascending/descending', function() {
|
||||
calcHelper.openAutoFilterMenu();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy Cypress require afterEach */
|
||||
/* global describe it cy Cypress require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -18,10 +18,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Interact with bottom toolba
|
|||
calcHelper.clickOnFirstCell();
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function getTextEndPosForFirstCell() {
|
||||
calcHelper.dblClickOnFirstCell();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect*/
|
||||
/* global describe it cy beforeEach require expect*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Change cell appearance.', f
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function openAppearencePanel() {
|
||||
mobileHelper.openMobileWizard();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect*/
|
||||
/* global describe it cy beforeEach require expect*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Chart tests.', function() {
|
|||
insertChart();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function insertChart() {
|
||||
mobileHelper.openInsertionWizard();
|
||||
cy.cGet('body').contains('.menu-entry-with-icon', 'Chart...').click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -21,10 +21,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects',function()
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Delete Text', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
calcHelper.dblClickOnFirstCell();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect*/
|
||||
/* global describe it cy beforeEach require expect*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagmobile'], 'Calc focus tests', function() {
|
|||
cy.cGet('.inputbar_container', {timeout : 10000});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Basic document focus.', function() {
|
||||
// Click on edit button
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect Cypress*/
|
||||
/* global describe it cy beforeEach require expect Cypress*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud'], 'Formula bar tests.', function() {
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Select a cell by address', function() {
|
||||
// Select first cell by clicking on it
|
||||
calcHelper.clickOnFirstCell();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach expect */
|
||||
/* global describe it cy require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
|||
mobileHelper.enableEditingMobile();
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Save', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('hamburger_menu.ods');
|
||||
calcHelper.selectEntireSheet();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe cy it beforeEach require afterEach */
|
||||
/* global describe cy it beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -14,11 +14,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Image Operation Tests', fun
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
|
||||
it('Insert Image', function() {
|
||||
mobileHelper.insertImage();
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect*/
|
||||
/* global describe it cy beforeEach require expect*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -19,10 +19,6 @@ describe(['tagmobile', 'tagnextcloud'], 'Calc insertion wizard.', function() {
|
|||
mobileHelper.openInsertionWizard();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Inset local image.', function() {
|
||||
// We can't use the menu item directly, because it would open file picker.
|
||||
cy.cGet('body').contains('.menu-entry-with-icon', 'Local Image...')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach Cypress */
|
||||
/* global describe it cy require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -8,10 +8,6 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
var origTestFileName = 'nextcloud.ods';
|
||||
var testFileName;
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert image from storage.', function() {
|
||||
helper.upLoadFileToNextCloud('image_to_insert.png', 'calc');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -21,10 +21,6 @@ describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply number formattin
|
|||
cy.cGet('#numberformatcombobox > .ui-header').should('be.visible');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function selectFormatting(formattingString) {
|
||||
// Select formatting list
|
||||
mobileHelper.selectListBoxItem2('#numberformatcombobox > .ui-header', formattingString);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Overlay bounds.', function
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Cell cursor overlay bounds', function () {
|
||||
// Select first cell by clicking on it
|
||||
calcHelper.clickOnFirstCell();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach */
|
||||
/* global describe it cy require beforeEach */
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -16,10 +16,6 @@ describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Row Column Operation',
|
|||
calcHelper.clickOnFirstCell(true,false);
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function selectOption(submenu, option) {
|
||||
cy.cGet('#toolbar-hamburger').click();
|
||||
cy.cGet('.menu-entry-icon.sheetmenu').parent().click();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var searchHelper = require('../../common/search_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Searching via search bar.',
|
|||
searchHelper.showSearchBar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
searchHelper.typeIntoSearchField('a');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Sheet Operation', function
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert sheet', function () {
|
||||
calcHelper.assertNumberofSheets(1);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect*/
|
||||
/* global describe it cy beforeEach require expect*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var calcHelper = require('../../common/calc_helper');
|
||||
|
@ -15,10 +15,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Calc spell checking menu.',
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function openContextMenu() {
|
||||
// Click and then long press on first cell
|
||||
cy.cGet('#map')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Editing Operations', f
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function undo() {
|
||||
cy.wait(1000);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach */
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagmobile'], 'Annotation tests.', function() {
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Saving comment.', function() {
|
||||
mobileHelper.insertComment();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font on selected shap
|
|||
impressHelper.selectTextShapeInTheCenter();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function triggerNewSVG() {
|
||||
mobileHelper.closeMobileWizard();
|
||||
impressHelper.triggerNewSVGForShapeInTheCenter();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -13,10 +13,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font on selected text
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function triggerNewSVG() {
|
||||
mobileHelper.closeMobileWizard();
|
||||
impressHelper.triggerNewSVGForShapeInTheCenter();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties
|
|||
impressHelper.selectTextShapeInTheCenter();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function triggerNewSVG() {
|
||||
mobileHelper.closeMobileWizard();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach*/
|
||||
/* global describe it cy beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -16,10 +16,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties
|
|||
impressHelper.selectTextShapeInTheCenter();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function triggerNewSVG() {
|
||||
mobileHelper.closeMobileWizard();
|
||||
impressHelper.triggerNewSVGForShapeInTheCenter();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe cy it expect beforeEach require afterEach */
|
||||
/* global describe cy it expect beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -19,11 +19,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function()
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
|
||||
it('Delete Text', function() {
|
||||
helper.setDummyClipboardForCopy();
|
||||
cy.cGet('.leaflet-layer').dblclick('center');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach */
|
||||
/* global describe it cy require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -15,10 +15,6 @@ describe.skip(['tagmobile'], 'Trigger hamburger menu options.', function() {
|
|||
mobileHelper.enableEditingMobile();
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Save', { defaultCommandTimeout: 60000 }, function() {
|
||||
before('hamburger_menu.odp');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it beforeEach require afterEach */
|
||||
/* global describe it beforeEach require */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Image Operation Tests', fun
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert Image', function() {
|
||||
mobileHelper.insertImage();
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect */
|
||||
/* global describe it cy beforeEach require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -12,10 +12,6 @@ describe(['tagmobile', 'tagproxy'], 'Impress focus tests', function() {
|
|||
testFileName = helper.beforeAll(origTestFileName, 'impress');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Select text box, no editing', function() {
|
||||
|
||||
mobileHelper.enableEditingMobile();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require expect afterEach Cypress*/
|
||||
/* global describe it cy beforeEach require expect Cypress*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud'], 'Impress insertion wizard.', function()
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function selectionShouldBeTextShape(checkShape) {
|
||||
// Check that the shape is there
|
||||
cy.cGet('.leaflet-pane.leaflet-overlay-pane svg')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach Cypress */
|
||||
/* global describe it cy require Cypress */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -8,10 +8,6 @@ describe(['tagnextcloud'], 'Nextcloud specific tests.', function() {
|
|||
var origTestFileName = 'nextcloud.odp';
|
||||
var testFileName;
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Insert image from storage.', function() {
|
||||
helper.upLoadFileToNextCloud('image_to_insert.png', 'impress');
|
||||
testFileName = helper.beforeAll(origTestFileName, 'impress', undefined, true);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy beforeEach require afterEach expect */
|
||||
/* global describe it cy beforeEach require expect */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var searchHelper = require('../../common/search_helper');
|
||||
|
@ -17,10 +17,6 @@ describe.skip('Searching via search bar.', function() {
|
|||
searchHelper.showSearchBar();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Search existing word.', function() {
|
||||
searchHelper.typeIntoSearchField('a');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach beforeEach*/
|
||||
/* global describe it cy require beforeEach*/
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var impressHelper = require('../../common/impress_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Slide operations', function
|
|||
mobileHelper.enableEditingMobile();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
it('Add slides', function() {
|
||||
cy.cGet('.leaflet-control-zoom-in').click();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global describe it cy require afterEach expect beforeEach */
|
||||
/* global describe it cy require expect beforeEach */
|
||||
|
||||
var helper = require('../../common/helper');
|
||||
var mobileHelper = require('../../common/mobile_helper');
|
||||
|
@ -14,10 +14,6 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Changing slide properties.'
|
|||
mobileHelper.openMobileWizard();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
helper.afterAll(testFileName, this.currentTest.state);
|
||||
});
|
||||
|
||||
function previewShouldBeFullWhite(fullWhite = true, slideNumber = 1) {
|
||||
var selector = '.preview-frame:nth-of-type(' + (slideNumber + 1).toString() + ') img';
|
||||
if (fullWhite)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue