- 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:
Brett Zamir
2019-12-23 18:34:28 +08:00
parent 31a98c1408
commit fc41ea7a43
24 changed files with 147 additions and 92 deletions

View File

@@ -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();
};