master
JFH 2021-09-05 11:01:59 +02:00
parent 9fe15e1d16
commit fcfe6c5a6e
3 changed files with 3 additions and 5 deletions

View File

@ -182,9 +182,7 @@ describe('use various parts of svg-edit', function () {
});
it('check tool_text_change_font_family', function () {
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').find('se-list-item').eq(6).shadow().find('elix-option').eq(0)
.click({ force: true });
cy.get('#tool_font_family').shadow().find('select').select("Serif");
cy.get('#svgcontent').toMatchSnapshot();
});
});

View File

@ -56,7 +56,7 @@ describe('use all parts of svg-edit', function () {
it('check tool_path_change_seg_type', function () {
cy.get('#svg_1').click({ 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')
.trigger('mousedown', { force: true })
.trigger('mousemove', 130, 175, { force: true })

View File

@ -122,7 +122,7 @@ export default class ConfigObj {
text: {
stroke_width: 0,
font_size: 24,
font_family: 'serif'
font_family: 'Serif'
},
initOpacity: 1,
initTool: 'select',