2024-04-19 16:18:22 -05:00
|
|
|
/* global describe it cy require beforeEach*/
|
2021-06-03 06:31:52 -05:00
|
|
|
|
|
|
|
var helper = require('../../common/helper');
|
|
|
|
var impressHelper = require('../../common/impress_helper');
|
|
|
|
var mobileHelper = require('../../common/mobile_helper');
|
|
|
|
|
2023-05-04 03:28:56 -05:00
|
|
|
describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Slide operations', function() {
|
2021-06-03 06:31:52 -05:00
|
|
|
|
|
|
|
beforeEach(function() {
|
2024-04-22 16:09:23 -05:00
|
|
|
helper.setupAndLoadDocument('impress/slide_operations.odp');
|
2021-06-03 06:31:52 -05:00
|
|
|
|
|
|
|
mobileHelper.enableEditingMobile();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Add slides', function() {
|
2023-05-01 09:30:11 -05:00
|
|
|
cy.cGet('.leaflet-control-zoom-in').click();
|
2021-06-03 06:31:52 -05:00
|
|
|
|
|
|
|
impressHelper.assertNumberOfSlidePreviews(2);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Remove Slides', function() {
|
|
|
|
//add slides
|
2023-05-01 09:30:11 -05:00
|
|
|
cy.cGet('.leaflet-control-zoom-in').click();
|
2021-06-03 06:31:52 -05:00
|
|
|
impressHelper.assertNumberOfSlidePreviews(2);
|
|
|
|
//remove slides
|
|
|
|
mobileHelper.openHamburgerMenu();
|
2023-05-01 09:30:11 -05:00
|
|
|
cy.cGet('.menu-entry-icon.slidemenu').parent().click();
|
|
|
|
cy.cGet('.menu-entry-icon.deletepage').parent().click();
|
|
|
|
cy.cGet('#deleteslide-modal-response').click();
|
2021-06-03 06:31:52 -05:00
|
|
|
impressHelper.assertNumberOfSlidePreviews(1);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Duplicate Slide', function() {
|
|
|
|
mobileHelper.openHamburgerMenu();
|
|
|
|
|
2023-05-01 09:30:11 -05:00
|
|
|
cy.cGet('.menu-entry-icon.slidemenu').parent().click();
|
|
|
|
cy.cGet('.menu-entry-icon.duplicatepage').parent().click();
|
2021-06-03 06:31:52 -05:00
|
|
|
|
|
|
|
impressHelper.assertNumberOfSlidePreviews(2);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|