- Refactoring: Make dialog OK button retrievable locale-independently (for testing)
- Testing: Avoid testing being locale-dependent; approve storage (and set locale to English) before each test
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
export const approveStorage = (t) => {
|
||||
return t
|
||||
.click('#dialog_buttons > input[type=button][value=OK]');
|
||||
.click('#dialog_buttons > input[type=button][data-ok]');
|
||||
};
|
||||
|
||||
export const approveStorageAndOpenMainMenu = (t) => {
|
||||
return approveStorage(t).click('#main_icon');
|
||||
export const openMainMenu = (t) => {
|
||||
return t.click('#main_icon');
|
||||
};
|
||||
|
||||
export const approveStorageAndOpenEditorPreferences = (t) => {
|
||||
return approveStorageAndOpenMainMenu(t).click('#tool_prefs_option');
|
||||
export const openEditorPreferences = (t) => {
|
||||
return openMainMenu(t).click('#tool_prefs_option');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user