Fix circular dependency issue by using Cypres env variables directly instead of global constants

This commit is contained in:
Tim Donohue
2023-09-08 16:14:24 -05:00
parent 8d61fa6ac3
commit e47593b303
15 changed files with 51 additions and 76 deletions

View File

@@ -1,5 +1,3 @@
import { TEST_SEARCH_TERM } from 'cypress/support/e2e';
const page = {
fillOutQueryInNavBar(query) {
// Click the magnifying glass
@@ -17,7 +15,7 @@ const page = {
describe('Search from Navigation Bar', () => {
// NOTE: these tests currently assume this query will return results!
const query = TEST_SEARCH_TERM;
const query = Cypress.env('DSPACE_TEST_SEARCH_TERM');
it('should go to search page with correct query if submitted (from home)', () => {
cy.visit('/');