- Testing: Separate tests into unit/ui; split UI tests by specific domain;
setup browser-bug folder and ui issues folder - Testing: Create test utilities for selecting English and visiting and approving storage - Testing: Add test for tool selection
This commit is contained in:
@@ -3,6 +3,11 @@ export const approveStorage = () => {
|
||||
.click();
|
||||
};
|
||||
|
||||
export const visitAndApproveStorage = () => {
|
||||
cy.visit('/instrumented/svg-editor-es.html');
|
||||
approveStorage();
|
||||
};
|
||||
|
||||
export const openMainMenu = () => {
|
||||
return cy.get('#main_icon').click();
|
||||
};
|
||||
@@ -11,3 +16,9 @@ export const openEditorPreferences = () => {
|
||||
openMainMenu();
|
||||
return cy.get('#tool_prefs_option').click();
|
||||
};
|
||||
|
||||
export const selectEnglish = () => {
|
||||
openEditorPreferences();
|
||||
cy.get('#lang_select').select('en');
|
||||
cy.get('#tool_prefs_save').click();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user