Update snpashots.

This commit is contained in:
Paulo Gustavo Veiga 2023-01-07 01:44:43 -08:00
parent 2dbfd77a37
commit 122f3c9c11
6 changed files with 4 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -23,7 +23,6 @@ class CurvedLinePeer extends ElementPeer {
constructor() { constructor() {
const svgElement = window.document.createElementNS(ElementPeer.svgNamespace, 'path'); const svgElement = window.document.createElementNS(ElementPeer.svgNamespace, 'path');
super(svgElement); super(svgElement);
this._style = { fill: '#495879' };
this._customControlPoint_1 = false; this._customControlPoint_1 = false;
this._customControlPoint_2 = false; this._customControlPoint_2 = false;
this._control1 = new Point(0, 0); this._control1 = new Point(0, 0);
@ -96,7 +95,7 @@ class CurvedLinePeer extends ElementPeer {
} }
setStrokeWidth(width) { setStrokeWidth(width) {
this._style['stroke-width'] = width; this._native.setAttribute('stroke-width', width);
} }
updateLine(avoidControlPointFix) { updateLine(avoidControlPointFix) {
@ -127,11 +126,8 @@ class CurvedLinePeer extends ElementPeer {
setWidth(value) { setWidth(value) {
this._width = value; this._width = value;
if (this._width > 1) { if (this._width === 1) {
this._style.fill = this._fill; this.setFill('none');
} else {
this._fill = this._style.fill;
this._style.fill = 'none';
} }
this.updateLine(); this.updateLine();
} }

View File

@ -1,12 +1,10 @@
context('Editor Page', () => { context('Editor Page', () => {
beforeEach(() => { beforeEach(() => {
cy.visit('/c/maps/11/edit'); cy.visit('/c/maps/11/edit');
cy.get('[aria-label="vortex-loading"]', { timeout: 120000 }).should('not.exist');
}); });
it('page loaded', () => { it('page loaded', () => {
// Wait for load complate ...
cy.get('[aria-label="vortex-loading"]').should('not.exist');
cy.matchImageSnapshot('editor-page'); cy.matchImageSnapshot('editor-page');
}); });
}); });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB