fix test
This commit is contained in:
@@ -182,9 +182,7 @@ describe('use various parts of svg-edit', function () {
|
|||||||
});
|
});
|
||||||
it('check tool_text_change_font_family', function () {
|
it('check tool_text_change_font_family', function () {
|
||||||
cy.get('#svg_1').click({ force: true });
|
cy.get('#svg_1').click({ force: true });
|
||||||
cy.get('#tool_font_family').shadow().find('elix-dropdown-list').eq(0).invoke('attr', 'opened', 'opened');
|
cy.get('#tool_font_family').shadow().find('select').select("Serif");
|
||||||
cy.get('#tool_font_family').find('se-list-item').eq(6).shadow().find('elix-option').eq(0)
|
|
||||||
.click({ force: true });
|
|
||||||
cy.get('#svgcontent').toMatchSnapshot();
|
cy.get('#svgcontent').toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ describe('use all parts of svg-edit', function () {
|
|||||||
it('check tool_path_change_seg_type', function () {
|
it('check tool_path_change_seg_type', function () {
|
||||||
cy.get('#svg_1').click({ force: true });
|
cy.get('#svg_1').click({ force: true });
|
||||||
cy.get('#svg_1').dblclick({ force: true });
|
cy.get('#svg_1').dblclick({ force: true });
|
||||||
cy.get('#seg_type').select('6').should('have.value', '6');
|
cy.get('#seg_type').shadow().find('select').select('6').should('have.value', '6');
|
||||||
cy.get('#ctrlpointgrip_3c1')
|
cy.get('#ctrlpointgrip_3c1')
|
||||||
.trigger('mousedown', { force: true })
|
.trigger('mousedown', { force: true })
|
||||||
.trigger('mousemove', 130, 175, { force: true })
|
.trigger('mousemove', 130, 175, { force: true })
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export default class ConfigObj {
|
|||||||
text: {
|
text: {
|
||||||
stroke_width: 0,
|
stroke_width: 0,
|
||||||
font_size: 24,
|
font_size: 24,
|
||||||
font_family: 'serif'
|
font_family: 'Serif'
|
||||||
},
|
},
|
||||||
initOpacity: 1,
|
initOpacity: 1,
|
||||||
initTool: 'select',
|
initTool: 'select',
|
||||||
|
|||||||
Reference in New Issue
Block a user