Skip to content

Commit

Permalink
add deprecated to all support files
Browse files Browse the repository at this point in the history
  • Loading branch information
chopkinsmade committed Oct 9, 2023
1 parent 8faae28 commit 49c936f
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 8 deletions.
6 changes: 6 additions & 0 deletions test/functional/cypress/support/actions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { fill } from './form-fillers'
/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

const adviserResult = require('../../../sandbox/fixtures/autocomplete-adviser-list.json')

Expand Down
7 changes: 7 additions & 0 deletions test/functional/cypress/support/assertions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

const { keys, forEach, isObject } = require('lodash')
const qs = require('qs')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**
* Assertions for the various CollectionList tests
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

const { assertBreadcrumbs } = require('./assertions')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// Assertions for the CompanyLocalHeader tests
/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

const selectors = require('../../../selectors')
const { testBreadcrumbs } = require('./assertions')
Expand Down
7 changes: 7 additions & 0 deletions test/functional/cypress/support/event-assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import {
assertTextVisible,
} from './assertions'

/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

const YES = 'Yes'
const UK = 'United Kingdom'

Expand Down
7 changes: 7 additions & 0 deletions test/functional/cypress/support/eventform-fillers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import {
fillMultiOptionTypeaheadWithLegend,
} from './form-fillers'

/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

const selectors = require('../../../selectors/event/createOrEdit')

const UK = 'United Kingdom'
Expand Down
7 changes: 7 additions & 0 deletions test/functional/cypress/support/form-fillers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

/**
* @deprecated
*/
Expand Down
13 changes: 7 additions & 6 deletions test/functional/cypress/support/tests.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/**
* Resuable test functions - these combine an action with an assertion.
*
* These are distinct from assertions because unlike an assertion, these have
* side effects as a result of the action taken.
*/
import { selectFirstTypeaheadOption } from './actions'
import {
assertTypeaheadHints,
assertTypeaheadOptionSelected,
assertCheckboxGroupOption,
} from './assertions'

/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

/**
* @deprecated
* Tests that a typeahead functions correctly by inputing a value and selecting
Expand Down
7 changes: 7 additions & 0 deletions test/functional/cypress/support/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* @deprecated
* THE LOGIC IN THIS FILE HAS BEEN MOVED TO THE /test/support FOLDER AS THE LOGIC IS SHARED BETWEEN
* THE COMPONENT AND FUNCTIONAL TESTS. THIS FILE IS ONLY HERE TO AVOID BREAKING ANY TESTS, NO
* ADDITIONAL LOGIC SHOULD BE ADDED
*/

module.exports = {
/**
* @deprecated
Expand Down

0 comments on commit 49c936f

Please sign in to comment.