adapt import in cy tests

master
JFH 2020-07-14 18:06:33 +02:00
parent b1e4429741
commit 232995ba1a
17 changed files with 64 additions and 64 deletions

View File

@ -1,6 +1,6 @@
describe('UI - Accessibility', function () {
beforeEach(() => {
cy.visit('/instrumented/svg-editor-es.html');
cy.visit('/instrumented/editor/svg-editor-es.html');
cy.injectAxe();
});

View File

@ -1,5 +1,5 @@
import '../../../instrumented/jquery.min.js';
import * as contextmenu from '../../../instrumented/contextmenu.js';
import '../../../instrumented/editor/jquery.min.js';
import * as contextmenu from '../../../instrumented/editor/contextmenu.js';
describe('contextmenu', function () {
/**

View File

@ -1,8 +1,8 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as utilities from '../../../instrumented/utilities.js';
import * as coords from '../../../instrumented/coords.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import * as coords from '../../../instrumented/svgcanvas/coords.js';
describe('coords', function () {
let elemId = 1;

View File

@ -1,8 +1,8 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as draw from '../../../instrumented/draw.js';
import * as units from '../../../instrumented/units.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as draw from '../../../instrumented/svgcanvas/draw.js';
import * as units from '../../../instrumented/common/units.js';
describe('draw.Drawing', function () {
const addOwnSpies = (obj) => {

View File

@ -1,9 +1,9 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as transformlist from '../../../instrumented/svgtransformlist.js';
import * as utilities from '../../../instrumented/utilities.js';
import * as hstory from '../../../instrumented/history.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as transformlist from '../../../instrumented/common/svgtransformlist.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import * as hstory from '../../../instrumented/svgcanvas/history.js';
describe('history', function () {
// TODO(codedread): Write tests for handling history events.

View File

@ -1,7 +1,7 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as math from '../../../instrumented/math.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as math from '../../../instrumented/common/math.js';
describe('math', function () {
const svg = document.createElementNS(NS.SVG, 'svg');

View File

@ -1,11 +1,11 @@
/* globals SVGPathSeg */
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import '../../../instrumented/svgpathseg.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as utilities from '../../../instrumented/utilities.js';
import * as pathModule from '../../../instrumented/path.js';
import {init as unitsInit} from '../../../instrumented/units.js';
import '../../../instrumented/common/svgpathseg.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import * as pathModule from '../../../instrumented/svgcanvas/path.js';
import {init as unitsInit} from '../../../instrumented/common/units.js';
describe('path', function () {
/**

View File

@ -1,9 +1,9 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as utilities from '../../../instrumented/utilities.js';
import * as coords from '../../../instrumented/coords.js';
import * as recalculate from '../../../instrumented/recalculate.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import * as coords from '../../../instrumented/svgcanvas/coords.js';
import * as recalculate from '../../../instrumented/svgcanvas/recalculate.js';
describe('recalculate', function () {
// eslint-disable-next-line no-shadow

View File

@ -1,7 +1,7 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as sanitize from '../../../instrumented/sanitize.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as sanitize from '../../../instrumented/svgcanvas/sanitize.js';
describe('sanitize', function () {
const svg = document.createElementNS(NS.SVG, 'svg');

View File

@ -1,7 +1,7 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import * as select from '../../../instrumented/select.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as select from '../../../instrumented/svgcanvas/select.js';
import {NS} from '../../../instrumented/common/namespaces.js';
describe('select', function () {
const sandbox = document.createElement('div');

View File

@ -1,8 +1,8 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as transformlist from '../../../instrumented/svgtransformlist.js';
import {disableSupportsNativeTransformLists} from '../../../instrumented/browser.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as transformlist from '../../../instrumented/common/svgtransformlist.js';
import {disableSupportsNativeTransformLists} from '../../../instrumented/common/browser.js';
import almostEqualsPlugin from '../../support/assert-almostEquals.js';
import expectOutOfBoundsExceptionPlugin from '../../support/assert-expectOutOfBoundsException.js';

View File

@ -1,8 +1,8 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/jquery-ui/jquery-ui-1.8.17.custom.min.js';
import '../../../instrumented/editor/jquery.min.js';
import '../../../instrumented/editor/jquery-ui/jquery-ui-1.8.17.custom.min.js';
import '../../../instrumented/svgpathseg.js';
import SvgCanvas from '../../../instrumented/svgcanvas.js';
import '../../../instrumented/common/svgpathseg.js';
import SvgCanvas from '../../../instrumented/svgcanvas/svgcanvas.js';
describe('Basic Module', function () {
// helper functions

View File

@ -1,6 +1,6 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import * as units from '../../../instrumented/units.js';
import * as units from '../../../instrumented/common/units.js';
describe('units', function () {
/**

View File

@ -1,11 +1,11 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import '../../../instrumented/svgpathseg.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as utilities from '../../../instrumented/utilities.js';
import * as transformlist from '../../../instrumented/svgtransformlist.js';
import * as math from '../../../instrumented/math.js';
import * as path from '../../../instrumented/path.js';
import '../../../instrumented/common/svgpathseg.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import * as transformlist from '../../../instrumented/common/svgtransformlist.js';
import * as math from '../../../instrumented/common/math.js';
import * as path from '../../../instrumented/svgcanvas/path.js';
import setAssertionMethods from '../../support/assert-close.js';
chai.use(setAssertionMethods);

View File

@ -1,10 +1,10 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import '../../../instrumented/svgpathseg.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as utilities from '../../../instrumented/utilities.js';
import * as transformlist from '../../../instrumented/svgtransformlist.js';
import * as math from '../../../instrumented/math.js';
import '../../../instrumented/common/svgpathseg.js';
import {NS} from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import * as transformlist from '../../../instrumented/common/svgtransformlist.js';
import * as math from '../../../instrumented/common/math.js';
describe('utilities performance', function () {
let currentLayer, groupWithMatrixTransform, textWithMatrixTransform;

View File

@ -1,8 +1,8 @@
import '../../../instrumented/jquery.min.js';
import '../../../instrumented/editor/jquery.min.js';
import * as browser from '../../../instrumented/browser.js';
import * as utilities from '../../../instrumented/utilities.js';
import {NS} from '../../../instrumented/namespaces.js';
import * as browser from '../../../instrumented/common/browser.js';
import * as utilities from '../../../instrumented/common/utilities.js';
import {NS} from '../../../instrumented/common/namespaces.js';
describe('utilities', function () {
/**

View File

@ -4,7 +4,7 @@ export const approveStorage = () => {
};
export const visitAndApproveStorage = () => {
cy.visit('/instrumented/svg-editor-es.html');
cy.visit('/instrumented/editor/svg-editor-es.html');
approveStorage();
};