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

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

describe('Calc bottom bar tests.', function() {
	var testFileName = 'BottomBar.ods';

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

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

	it('Bottom tool bar.', function() {
		cy.get('#map').focus();
		calcHelper.clickOnFirstCell();
		cy.get('#tb_actionbar_item_StateTableCellMenu .w2ui-button').click();
		// If it clicks, it passes.
		cy.contains('.w2ui-drop-menu .menu-text', 'CountA').click();
	});
});