cypress: mobile: Update ColorPicker related tests.
Which were failing after a recent commit:
6dc92fb812
Change-Id: I79939c7bc7e2a26f6a235c5079976cd5adb31959
This commit is contained in:
parent
f53e030339
commit
7124587e70
3 changed files with 6 additions and 12 deletions
|
@ -196,7 +196,7 @@ describe('Apply font changes.', function() {
|
|||
cy.get('#color-picker-0-basic-color-5')
|
||||
.click();
|
||||
|
||||
cy.get('#color-picker-0-tint-3')
|
||||
cy.get('#color-picker-0-tint-2')
|
||||
.click();
|
||||
|
||||
cy.get('#mobile-wizard-back')
|
||||
|
@ -211,7 +211,7 @@ describe('Apply font changes.', function() {
|
|||
helper.copyTextToClipboard();
|
||||
|
||||
cy.get('#copy-paste-container p font')
|
||||
.should('have.attr', 'color', '#00ff00');
|
||||
.should('have.attr', 'color', '#6aa84f');
|
||||
});
|
||||
|
||||
it('Apply highlight color.', function() {
|
||||
|
@ -222,7 +222,7 @@ describe('Apply font changes.', function() {
|
|||
cy.get('#color-picker-1-basic-color-5')
|
||||
.click();
|
||||
|
||||
cy.get('#color-picker-1-tint-3')
|
||||
cy.get('#color-picker-1-tint-4')
|
||||
.click();
|
||||
|
||||
cy.get('#mobile-wizard-back')
|
||||
|
@ -237,7 +237,7 @@ describe('Apply font changes.', function() {
|
|||
helper.copyTextToClipboard();
|
||||
|
||||
cy.get('#copy-paste-container p font span')
|
||||
.should('have.attr', 'style', 'background: #00ff00');
|
||||
.should('have.attr', 'style', 'background: #93c47d');
|
||||
});
|
||||
|
||||
it('Apply superscript.', function() {
|
||||
|
|
|
@ -200,7 +200,7 @@ describe('Apply paragraph properties.', function() {
|
|||
cy.get('#color-picker-2-basic-color-5')
|
||||
.click();
|
||||
|
||||
cy.get('#color-picker-2-tint-3')
|
||||
cy.get('#color-picker-2-tint-2')
|
||||
.click();
|
||||
|
||||
cy.get('#mobile-wizard-back')
|
||||
|
@ -215,7 +215,7 @@ describe('Apply paragraph properties.', function() {
|
|||
cy.get('#copy-paste-container p')
|
||||
.then(function(item) {
|
||||
expect(item).to.have.lengthOf(1);
|
||||
expect(item[0].style['background']).to.be.equal('rgb(0, 255, 0)');
|
||||
expect(item[0].style['background']).to.be.equal('rgb(106, 168, 79)');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -88,9 +88,6 @@ describe('Pushing bottom toolbar items.', function() {
|
|||
cy.get('#color-picker-0-basic-color-7')
|
||||
.click();
|
||||
|
||||
cy.get('#color-picker-0-tint-3')
|
||||
.click();
|
||||
|
||||
cy.get('.w2ui-tb-image.w2ui-icon.textcolor')
|
||||
.should('have.attr', 'style', 'box-shadow: rgb(255, 255, 255) 0px -2px inset, rgb(0, 0, 255) 0px -6px inset;');
|
||||
|
||||
|
@ -107,9 +104,6 @@ describe('Pushing bottom toolbar items.', function() {
|
|||
cy.get('#color-picker-0-basic-color-9')
|
||||
.click();
|
||||
|
||||
cy.get('#color-picker-0-tint-3')
|
||||
.click();
|
||||
|
||||
cy.get('.w2ui-tb-image.w2ui-icon.backcolor')
|
||||
.should('have.attr', 'style', 'box-shadow: rgb(255, 255, 255) 0px -2px inset, rgb(255, 0, 255) 0px -6px inset;');
|
||||
|
||||
|
|
Loading…
Reference in a new issue