05552c3d99
cypress: skip: failing multiuser/writer/track_changes_spec.js due to bug Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: Iff736140cb7331d29ab0462a8a542559e98b48af
90 lines
1.9 KiB
JavaScript
90 lines
1.9 KiB
JavaScript
/* global describe it cy require afterEach beforeEach */
|
|
|
|
var helper = require('../../common/helper');
|
|
var impressHelper = require('../../common/impress_helper');
|
|
|
|
describe('Sidebar Tests', function() {
|
|
var testFileName = 'sidebar.odp';
|
|
|
|
beforeEach(function() {
|
|
helper.beforeAll(testFileName, 'impress');
|
|
});
|
|
|
|
afterEach(function() {
|
|
helper.afterAll(testFileName, this.currentTest.state);
|
|
});
|
|
|
|
|
|
it('Switch to slide transition Deck', function() {
|
|
cy.get('#tb_editbar_item_slidechangewindow .w2ui-button')
|
|
.should('not.have.class', 'checked');
|
|
|
|
cy.get('#layoutvalueset')
|
|
.should('be.visible');
|
|
|
|
cy.get('#tb_editbar_item_slidechangewindow .w2ui-button')
|
|
.click({force: true});
|
|
|
|
cy.get('#tb_editbar_item_slidechangewindow .w2ui-button')
|
|
.should('have.class', 'checked');
|
|
|
|
cy.get('#layoutvalueset')
|
|
.should('not.exist');
|
|
|
|
cy.get('#transitions_icons')
|
|
.should('be.visible');
|
|
});
|
|
|
|
it.only('Set gradient background color', function() {
|
|
cy.get('#fillattr2')
|
|
.should('not.be.visible');
|
|
|
|
helper.waitUntilIdle('#fillstyle');
|
|
|
|
cy.get('#fillstyle select')
|
|
.select('Gradient');
|
|
|
|
cy.get('#fillattr2')
|
|
.should('be.visible');
|
|
|
|
cy.get('#fillattr3')
|
|
.should('be.visible');
|
|
|
|
helper.waitUntilIdle('#fillattr2');
|
|
|
|
cy.get('#fillattr2')
|
|
.click();
|
|
|
|
cy.get('.modalpopup')
|
|
.should('be.visible');
|
|
|
|
cy.get('#colorset')
|
|
.should('be.visible');
|
|
});
|
|
|
|
it('Set underline using popup', function() {
|
|
cy.get('#layoutvalueset')
|
|
.should('be.visible');
|
|
|
|
impressHelper.selectTextShapeInTheCenter();
|
|
|
|
impressHelper.selectTextOfShape();
|
|
|
|
cy.get('#layoutvalueset')
|
|
.should('not.be.visible');
|
|
|
|
cy.get('#Underline .arrowbackground')
|
|
.click();
|
|
|
|
cy.get('.modalpopup')
|
|
.should('be.visible');
|
|
|
|
cy.get('#single')
|
|
.click();
|
|
|
|
impressHelper.triggerNewSVGForShapeInTheCenter();
|
|
|
|
cy.get('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph')
|
|
.should('have.attr', 'text-decoration', 'underline');
|
|
});
|
|
});
|