Revert "cypress: mobile: split this test case."

This reverts commit c692487acc.

Pushed accidentally.
This commit is contained in:
Tamás Zolnai 2020-02-24 11:54:47 +01:00
parent 7b3b034b6a
commit a1eaa97954

View file

@ -11,7 +11,7 @@ describe('Impress focus tests', function() {
helper.afterAll();
});
it('Single tap on a text shape.', function() {
it('Basic document focus.', function() {
// Click on edit button
cy.get('#mobile-edit-button').click();
@ -33,30 +33,14 @@ describe('Impress focus tests', function() {
// No focus
cy.document().its('activeElement.tagName')
.should('be.eq', 'BODY');
});
it('Double tap on a text shape.', function() {
// Click on edit button
cy.get('#mobile-edit-button').click();
cy.get('#tb_actionbar_item_mobile_wizard')
.should('not.have.class', 'disabled');
// Body has the focus -> can't type in the document
cy.document().its('activeElement.tagName')
.should('be.eq', 'BODY');
// Double tap on a text shape gives the focus to the document
cy.get('#document-container')
.dblclick();
// Shape selection
cy.get('.leaflet-pane.leaflet-overlay-pane svg g')
.should('exist');
// Document has the focus
// TODO: Focus is inconsistent here.
cy.document().its('activeElement.className')
.should('be.eq', 'clipboard');
//cy.document().its('activeElement.className')
// .should('be.eq', 'clipboard');
});
});