svgedit/cypress/support/ui-test-helper.js

25 lines
605 B
JavaScript
Raw Normal View History

export const approveStorage = () => {
2021-05-09 17:29:45 +00:00
// JFH will need to be chnaged when dialog is changed...
cy.get('#storage_ok').click();
};
export const visitAndApproveStorage = () => {
cy.visit('/instrumented/editor/index.html');
approveStorage();
};
export const openMainMenu = () => {
2021-05-12 23:00:09 +00:00
return cy.get('#main_button').click({ force: true });
};
export const openEditorPreferences = () => {
openMainMenu();
return cy.get('#tool_editor_prefs').click();
};
export const selectEnglish = () => {
openEditorPreferences();
cy.get('#lang_select').select('en');
cy.get('#tool_prefs_save').click();
};