blob: 498641321cf8748c195fb0357017a66fab0721f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* global describe it cy beforeEach require afterEach Cypress */
var helper = require('../../common/helper');
var desktopHelper = require('../../common/desktop_helper');
describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function() {
var origTestFileName = 'statusbar.odp';
var testFileName;
beforeEach(function() {
testFileName = helper.beforeAll(origTestFileName, 'impress');
if (Cypress.env('INTEGRATION') === 'nextcloud') {
desktopHelper.showStatusBarIfHidden ();
}
});
afterEach(function() {
helper.afterAll(testFileName, this.currentTest.state);
});
it('Selected slide.', function() {
cy.cGet('#PageStatus').should('have.text', 'Slide 1 of 2');
cy.cGet('#tb_actionbar_item_next').click();
cy.cGet('#PageStatus').should('have.text', 'Slide 2 of 2');
cy.cGet('#tb_actionbar_item_prev').click();
cy.cGet('#PageStatus').should('have.text', 'Slide 1 of 2');
});
it('Change zoom level.', function() {
desktopHelper.resetZoomLevel();
desktopHelper.shouldHaveZoomLevel('100');
desktopHelper.zoomIn();
desktopHelper.shouldHaveZoomLevel('120');
desktopHelper.zoomOut();
desktopHelper.shouldHaveZoomLevel('100');
});
it('Select zoom level.', function() {
desktopHelper.resetZoomLevel();
desktopHelper.shouldHaveZoomLevel('100');
desktopHelper.selectZoomLevel('280');
desktopHelper.shouldHaveZoomLevel('280');
});
});
|