Files
svgedit/cypress/support/ui-test-helper.js
JFH 00a7d61122 Update packages and remove the instrument step (#854)
* several updates
* avoid the instrumented step in tests
2022-11-27 23:01:27 +01:00

20 lines
463 B
JavaScript

export const visitAndApproveStorage = () => {
cy.visit('/src/editor/index.html')
cy.get('#storage_ok').click()
}
export const openMainMenu = () => {
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()
}