-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
35 lines (33 loc) · 1.13 KB
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'dotenv/config'
import { defineConfig } from 'cypress'
import createActiveSeeker from 'cypress/tasks/createActiveSeeker'
import createCoach from 'cypress/tasks/createCoach'
import createJob from 'cypress/tasks/createJob'
import createRecruiterWithApplicant from 'cypress/tasks/createRecruiterWithApplicant'
import createSeeker from 'cypress/tasks/createSeeker'
import createSeekerLead from 'cypress/tasks/createSeekerLead'
import createTrainerWithStudent from 'cypress/tasks/createTrainerWithStudent'
import createUser from 'cypress/tasks/createUser'
import assertNoFailedJobs from 'cypress/tasks/assertNoFailedJobs'
import clearFailedJobs from 'cypress/tasks/clearFailedJobs'
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
setupNodeEvents(on) {
on('task', {
assertNoFailedJobs,
createUser,
createCoach,
createRecruiterWithApplicant,
createActiveSeeker,
clearFailedJobs,
createSeeker,
createJob,
createSeekerLead,
createTrainerWithStudent,
})
},
experimentalRunAllSpecs: true,
defaultCommandTimeout: 15000,
},
})