Update cypress import paths
This commit is contained in:
parent
65426fc034
commit
2cf1ba619b
|
|
@ -1,5 +1,5 @@
|
||||||
import module from '../../fixtures/module.minimal';
|
import module from '../../../fixtures/module.minimal';
|
||||||
import {getMinimalMe} from '../../support/helpers';
|
import {getMinimalMe} from '../../../support/helpers';
|
||||||
|
|
||||||
describe('Snapshot', () => {
|
describe('Snapshot', () => {
|
||||||
const operations = isTeacher => ({
|
const operations = isTeacher => ({
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {getMe} from '../../support/helpers';
|
import {getMe} from '../../../support/helpers';
|
||||||
import mocks from '../../fixtures/mocks';
|
import mocks from '../../../fixtures/mocks';
|
||||||
|
|
||||||
const modules = {
|
const modules = {
|
||||||
'lohn-und-budget': {
|
'lohn-und-budget': {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {assertStartPage} from '../../support/helpers';
|
import {assertStartPage} from '../../../support/helpers';
|
||||||
|
|
||||||
describe('Onboarding', () => {
|
describe('Onboarding', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {getMinimalMe} from '../../support/helpers';
|
import {getMinimalMe} from '../../../support/helpers';
|
||||||
|
|
||||||
describe('Sidebar', () => {
|
describe('Sidebar', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {getMinimalMe} from '../../support/helpers';
|
import {getMinimalMe} from '../../../support/helpers';
|
||||||
|
|
||||||
// const me = require('../../fixtures/me.new-student.json');
|
// const me = require('../../fixtures/me.new-student.json');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {hasOperationName} from '../../support/graphql';
|
import {hasOperationName} from '../../../support/graphql';
|
||||||
|
|
||||||
const me = require('../../fixtures/me.join-class.json');
|
const me = require('../../../fixtures/me.join-class.json');
|
||||||
const {getMinimalMe} = require('../../support/helpers');
|
const {getMinimalMe} = require('../../../support/helpers');
|
||||||
|
|
||||||
const MeQuery = getMinimalMe({});
|
const MeQuery = getMinimalMe({});
|
||||||
const {me: teacher} = MeQuery;
|
const {me: teacher} = MeQuery;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {getMinimalMe} from '../../support/helpers';
|
import {getMinimalMe} from '../../../support/helpers';
|
||||||
import {hasOperationName} from '../../support/graphql';
|
import {hasOperationName} from '../../../support/graphql';
|
||||||
|
|
||||||
const teacher = getMinimalMe();
|
const teacher = getMinimalMe();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,13 @@
|
||||||
|
|
||||||
// This function is called when a project is opened or re-opened (e.g. due to
|
// This function is called when a project is opened or re-opened (e.g. due to
|
||||||
// the project's config changing)
|
// the project's config changing)
|
||||||
|
require("tsconfig-paths").register();
|
||||||
|
|
||||||
import {readFileSync} from 'fs';
|
const {readFileSync} = require('fs');
|
||||||
import {resolve} from 'path';
|
const {resolve} = require('path');
|
||||||
|
// import webpackPreprocessor from '@cypress/webpack-preprocessor';
|
||||||
|
|
||||||
module.exports = (on, config) => {
|
module.exports = (on) => {
|
||||||
// `on` is used to hook into various events Cypress emits
|
// `on` is used to hook into various events Cypress emits
|
||||||
// `config` is the resolved Cypress config
|
// `config` is the resolved Cypress config
|
||||||
on('task', {
|
on('task', {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ declare namespace Cypress {
|
||||||
* @example
|
* @example
|
||||||
* cy.getByDataCy('my-new-button')
|
* cy.getByDataCy('my-new-button')
|
||||||
*/
|
*/
|
||||||
getByDataCy(selector: string): Chainable<any>
|
getByDataCy(selector: string): Chainable<Element>
|
||||||
|
|
||||||
selectClass(schoolClass: string): void
|
selectClass(schoolClass: string): void
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"lib": ["es5", "dom"],
|
||||||
|
"types": ["cypress"]
|
||||||
|
},
|
||||||
|
"include": ["**/*.ts"]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue