2019-11-23 13:02:51 +00:00
|
|
|
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();
|
2019-11-23 13:02:51 +00:00
|
|
|
};
|
|
|
|
|
2019-12-23 10:34:28 +00:00
|
|
|
export const visitAndApproveStorage = () => {
|
2020-08-31 22:15:18 +00:00
|
|
|
cy.visit('/instrumented/editor/index.html');
|
2019-12-23 10:34:28 +00:00
|
|
|
approveStorage();
|
|
|
|
};
|
|
|
|
|
2019-11-23 13:02:51 +00:00
|
|
|
export const openMainMenu = () => {
|
2021-05-09 17:29:45 +00:00
|
|
|
return cy.get('#main_button').click({force: true});
|
2019-11-23 13:02:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const openEditorPreferences = () => {
|
|
|
|
openMainMenu();
|
2019-12-24 08:02:46 +00:00
|
|
|
return cy.get('#tool_editor_prefs').click();
|
2019-11-23 13:02:51 +00:00
|
|
|
};
|
2019-12-23 10:34:28 +00:00
|
|
|
|
|
|
|
export const selectEnglish = () => {
|
|
|
|
openEditorPreferences();
|
|
|
|
cy.get('#lang_select').select('en');
|
|
|
|
cy.get('#tool_prefs_save').click();
|
|
|
|
};
|