Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Jul 22, 2022
1 parent 1282edb commit 73d29a9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { deleteFile } from '../utils'

const { waitForApplication, copyFile } = require('../utils')

const testDir = path.resolve(process.env.KIT_TEST_DIR || 'cypress/temp/test-project')
const projectFolder = Cypress.env('projectFolder')

const fixtures = path.join(Cypress.config('fixturesFolder'))

const fixtureViews = path.join(fixtures, 'views')
const stepByStepNavigationFixtureView = path.join(fixtureViews, 'step-by-step-navigation.html')

const appViews = path.join(Cypress.env('projectFolder'), 'app', 'views')
const appViews = path.join(projectFolder, 'app', 'views')
const stepByStepNavigationView = path.join(appViews, 'step-by-step-navigation.html')

const stepByStepNavigationPath = '/step-by-step-navigation'
Expand All @@ -32,7 +32,7 @@ const assertHidden = (step) => {
}

const runScript = (script) => {
script = `cd ${testDir} && ${script}`
script = `cd ${projectFolder} && ${script}`
cy.task('log', script)
cy.exec(script)
}
Expand Down

0 comments on commit 73d29a9

Please sign in to comment.