mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-13 02:37:57 +01:00
Remove checks on size.
This commit is contained in:
parent
63a91858e6
commit
a004d18741
@ -21,28 +21,28 @@ context('Edit Topic', () => {
|
||||
cy.get(`[aria-label="Smaller"]`).click();
|
||||
|
||||
|
||||
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '8.1');
|
||||
// cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '8.1');
|
||||
cy.matchImageSnapshot('changeFontSizeSmall');
|
||||
|
||||
cy.get(`[aria-label="Font Style"]`).trigger('mouseover');
|
||||
cy.get(`[aria-label="Bigger"]`).click();
|
||||
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '10.8');
|
||||
// cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '10.8');
|
||||
cy.matchImageSnapshot('changeFontSizeNormal');
|
||||
|
||||
cy.get(`[aria-label="Font Style"]`).trigger('mouseover');
|
||||
cy.get(`[aria-label="Bigger"]`).click();
|
||||
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '13.4');
|
||||
// cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '13.4');
|
||||
cy.matchImageSnapshot('changeFontSizeLarge');
|
||||
|
||||
cy.get(`[aria-label="Font Style"]`).trigger('mouseover');
|
||||
cy.get(`[aria-label="Bigger"]`).click();
|
||||
|
||||
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '20.2');
|
||||
// cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '20.2');
|
||||
cy.matchImageSnapshot('changeFontSizeHuge');
|
||||
|
||||
// Can not scale it more.
|
||||
cy.get(`[aria-label="Bigger"]`).click();
|
||||
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '20.2');
|
||||
// cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '20.2');
|
||||
cy.matchImageSnapshot('changeFontSizeHuge');
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user