cypress: update 'Enable text wrapping.' test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com> Change-Id: Iac566958e3820376a991d06c1ad5c03f81efd36a
This commit is contained in:
parent
6490e45131
commit
d18d3a5381
2 changed files with 5 additions and 6 deletions
Binary file not shown.
|
@ -19,6 +19,8 @@ describe('Top toolbar tests.', function() {
|
|||
function getTextEndPosForFirstCell() {
|
||||
calcHelper.dblClickOnFirstCell();
|
||||
|
||||
helper.moveCursor('end');
|
||||
|
||||
helper.getCursorPos('left', 'currentTextEndPos');
|
||||
}
|
||||
|
||||
|
@ -51,11 +53,9 @@ describe('Top toolbar tests.', function() {
|
|||
});
|
||||
|
||||
it('Enable text wrapping.', function() {
|
||||
calcHelper.clickOnFirstCell(true, false);
|
||||
calcHelper.typeIntoFormulabar('_This_is_a_really_long_text');
|
||||
helper.initAliasToNegative('originalTextEndPos');
|
||||
|
||||
getTextEndPosForFirstCell();
|
||||
|
||||
helper.initAliasToNegative('originalTextEndPos');
|
||||
cy.get('@currentTextEndPos')
|
||||
.as('originalTextEndPos');
|
||||
|
||||
|
@ -67,8 +67,7 @@ describe('Top toolbar tests.', function() {
|
|||
cy.get('.w2ui-tb-image.w2ui-icon.wraptext')
|
||||
.click();
|
||||
|
||||
calcHelper.clickOnFirstCell(true, false);
|
||||
calcHelper.typeIntoFormulabar('_string');
|
||||
calcHelper.clickOnFirstCell();
|
||||
|
||||
// We use the text position as indicator
|
||||
cy.waitUntil(function() {
|
||||
|
|
Loading…
Reference in a new issue