- Fix: Avoid errors occurring in Chrome now for supportsGoodTextCharPos
- Linting: Avoid Jamilih file in doc linting - Testing: Add testcafe (ESLint plugin/rules, accessibility test (failing), ui test beginnings (passing)) - Docs: Add "Testing" prefix to contributing file - npm: Bump to 3.0.0-rc.3
This commit is contained in:
22
test/ui-tests/ui.js
Normal file
22
test/ui-tests/ui.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// https://github.com/DevExpress/testcafe
|
||||
// https://devexpress.github.io/testcafe/documentation/test-api/
|
||||
// https://github.com/helen-dikareva/axe-testcafe
|
||||
import {Selector} from 'testcafe';
|
||||
|
||||
fixture`TestCafe UI tests`
|
||||
.page`http://localhost:8000/editor/svg-editor.html`;
|
||||
|
||||
test('Editor - No parameters: Export button', async t => {
|
||||
await t
|
||||
.click('#dialog_buttons > input[type=button][value=OK]')
|
||||
.click('#main_icon')
|
||||
.expect(Selector('#tool_export')).ok('Has open button');
|
||||
});
|
||||
|
||||
test('Editor - No parameters: Export button clicking', async t => {
|
||||
await t
|
||||
.click('#dialog_buttons > input[type=button][value=OK]')
|
||||
.click('#main_icon')
|
||||
.click('#tool_export')
|
||||
.expect(Selector('#dialog_content select')).ok('Export dialog opens');
|
||||
});
|
||||
Reference in New Issue
Block a user