-
Notifications
You must be signed in to change notification settings - Fork 47
/
cypress-smoketests.config.ts
72 lines (71 loc) · 2.18 KB
/
cypress-smoketests.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import {
confirmUser,
deleteAllCypressTestAccounts,
expireUserConfirmationCode,
getNewAccountVerificationCode,
getEmailVerificationToken,
} from './cypress/support/cognito-login';
import { defineConfig } from 'cypress';
import { waitForNoce } from './cypress/helpers/wait-for-noce';
import { waitForPractitionerEmailUpdate } from './cypress/helpers/wait-for-practitioner-email-update';
// eslint-disable-next-line import/no-default-export
export default defineConfig({
chromeWebSecurity: false,
defaultCommandTimeout: 60000,
e2e: {
experimentalStudio: true,
setupNodeEvents(on) {
on('task', {
confirmUser({ email }) {
return confirmUser({ email });
},
deleteAllCypressTestAccounts() {
return deleteAllCypressTestAccounts();
},
expireUserConfirmationCode(email: string) {
return expireUserConfirmationCode(email);
},
getNewAccountVerificationCode({ email }) {
return getNewAccountVerificationCode({ email });
},
waitForNoce({ docketNumber }: { docketNumber: string }) {
return waitForNoce({ docketNumber });
},
getEmailVerificationToken({ email }) {
return getEmailVerificationToken({ email });
},
waitForPractitionerEmailUpdate({
docketNumber,
practitionerEmail,
}: {
docketNumber: string;
practitionerEmail: string;
}) {
return waitForPractitionerEmailUpdate({
docketNumber,
practitionerEmail,
});
},
});
},
specPattern:
'cypress/cypress-smoketests/integration/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'cypress/cypress-smoketests/support/index.ts',
testIsolation: false,
},
fixturesFolder: 'cypress/cypress-smoketests/fixtures',
reporter: 'spec',
reporterOptions: {
toConsole: true,
},
requestTimeout: 60000,
retries: 0,
screenshotOnRunFailure: false,
screenshotsFolder: 'cypress/cypress-smoketests/screenshots',
video: true,
videoCompression: 10,
videosFolder: 'cypress/cypress-smoketests/videos',
viewportHeight: 900,
viewportWidth: 1200,
watchForFileChanges: false,
});