2018-09-30 04:05:50 +00:00
|
|
|
// 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`;
|
|
|
|
|
2018-11-07 06:51:50 +00:00
|
|
|
test('Editor - No parameters: Export button', async (t) => {
|
2018-09-30 04:05:50 +00:00
|
|
|
await t
|
|
|
|
.click('#dialog_buttons > input[type=button][value=OK]')
|
|
|
|
.click('#main_icon')
|
|
|
|
.expect(Selector('#tool_export')).ok('Has open button');
|
|
|
|
});
|
|
|
|
|
2018-11-07 06:51:50 +00:00
|
|
|
test('Editor - No parameters: Export button clicking', async (t) => {
|
2018-09-30 04:05:50 +00:00
|
|
|
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');
|
|
|
|
});
|