2019-11-23 13:02:51 +00:00
|
|
|
export const approveStorage = () => {
|
|
|
|
return cy.get('#dialog_buttons > input[type=button][data-ok]')
|
|
|
|
.click();
|
|
|
|
};
|
|
|
|
|
2019-12-23 10:34:28 +00:00
|
|
|
export const visitAndApproveStorage = () => {
|
|
|
|
cy.visit('/instrumented/svg-editor-es.html');
|
|
|
|
approveStorage();
|
|
|
|
};
|
|
|
|
|
2019-11-23 13:02:51 +00:00
|
|
|
export const openMainMenu = () => {
|
|
|
|
return cy.get('#main_icon').click();
|
|
|
|
};
|
|
|
|
|
|
|
|
export const openEditorPreferences = () => {
|
|
|
|
openMainMenu();
|
|
|
|
return cy.get('#tool_prefs_option').click();
|
|
|
|
};
|
2019-12-23 10:34:28 +00:00
|
|
|
|
|
|
|
export const selectEnglish = () => {
|
|
|
|
openEditorPreferences();
|
|
|
|
cy.get('#lang_select').select('en');
|
|
|
|
cy.get('#tool_prefs_save').click();
|
|
|
|
};
|