summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/desktop/calc/tunneled_dialog_spec.js
blob: dd5766d36e5357a65c093721bb64d8bfd862aa60 (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
/* global describe it cy beforeEach require afterEach */

var helper = require('../../common/helper');

describe('LOK tunnelled dialog tests', function() {
	var origTestFileName = 'tunneled_dialog.ods';
	var testFileName;

	beforeEach(function() {
		testFileName = helper.beforeAll(origTestFileName, 'calc');
	});

	afterEach(function() {
		helper.afterAll(testFileName, this.currentTest.state);
	});

	it('Keep LOK dialog open during closing document.', function() {
		cy.get('#tb_editbar_item_setborderstyle')
			.click();

		cy.get('.w2ui-tb-image.w2ui-icon.frame13')
		    .click();

		cy.get('.lokdialog')
			.should('exist');
	});

});