Skip to content

Commit

Permalink
address review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyaGu authored and wheresrhys committed Feb 5, 2020
1 parent cdb4dfc commit 7898cae
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const {
code,
someString,
deleteConfirmText,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateChildTypeFields,
visitEditPage,
visitMainTypePage,
pickChild,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - delete record', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ const {
anotherDocument,
someString,
someEnum,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
populateChildTypeFields,
visitMainTypePage,
visitEditPage,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - edit record', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const {
anotherString,
someUrl,
promptText,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
populateNonMinimumViableFields,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record creation', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
const {
code,
someString,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
const { code, someString } = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
visitEditPage,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers/mainTypeData.json');

describe('End-to-end - record Boolean type', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
const {
code,
someString,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
const { code, someString } = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
visitEditPage,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record Enum type', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const {
code,
someString,
someDocument,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record LargeText type', () => {
it('can record large text', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
const {
code,
someString,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
const { code, someString } = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
visitEditPage,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record multiple choice value', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const {
code,
someString,
someInteger,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record Number type', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const {
code,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
const { code } = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
populateParentTypeFields,
Expand All @@ -12,7 +10,7 @@ const {
visitMainTypePage,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - relationship creation', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const {
code,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
const { code } = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
populateChildTypeFields,
Expand All @@ -10,7 +8,7 @@ const {
visitMainTypePage,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - relationship deletion', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ const {
someString,
someDatetime,
someDate,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record Temporal type', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const {
code,
someString,
anotherString,
} = require('../../../../../../cypress/fixtures/mainTypeData.json');
} = require('../../../test-helpers/mainTypeData.json');
const {
populateMinimumViableFields,
save,
resetDb,
} = require('../../../../../../cypress/test-helpers');
} = require('../../../test-helpers');

describe('End-to-end - record Text type', () => {
it('can record a text', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
const {
code,
someDocument,
Expand All @@ -9,8 +10,8 @@ const {
someDate,
someDatetime,
someUrl,
} = require('../fixtures/mainTypeData.json');
const { dropFixtures } = require('../../test-helpers/test-fixtures');
} = require('./mainTypeData.json');
const { dropFixtures } = require('../../../../test-helpers/test-fixtures');

const populateParentTypeFields = codeLabel => {
cy.visit(`/ParentType/create`);
Expand Down
File renamed without changes.

0 comments on commit 7898cae

Please sign in to comment.