-
Notifications
You must be signed in to change notification settings - Fork 273
Expand file tree
/
Copy pathindex.cy.ts
More file actions
101 lines (97 loc) · 2.86 KB
/
index.cy.ts
File metadata and controls
101 lines (97 loc) · 2.86 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { LIVE_PAGE } from '#app/routes/utils/pageTypes';
import { assertPageView } from '#cypress/e2e/specialFeatures/atiAnalytics/assertions';
import mediaPlayerTests from './mediaPlayer';
import pageVisit from './pageVisit';
import keyPoints from './keyPoints';
import testsThatAlwaysRunForAllPages from '../testsForAllPages';
import runTestsForPage, {
TestDataType,
} from '../../support/helpers/runTestsForPage';
import {
assertDropdownNavigationComponentClick,
assertDropdownNavigationComponentView,
assertScrollableNavigationComponentClick,
assertScrollableNavigationComponentView,
} from '../specialFeatures/atiAnalytics/assertions/navigation';
const testDetails = [
{
path: '/pidgin/live/c7p765ynk9qt',
id: 'c7p765ynk9qt',
runforEnv: ['local'],
service: 'pidgin',
tests: [
testsThatAlwaysRunForAllPages,
pageVisit,
mediaPlayerTests,
keyPoints,
],
},
{
path: '/urdu/live/cx2qdkezzzvt',
id: 'cx2qdkezzzvt',
runforEnv: ['live'],
service: 'urdu',
tests: [testsThatAlwaysRunForAllPages, pageVisit, keyPoints],
},
] as unknown as TestDataType[];
const atiAnalyticsTestSuites = [
{
path: '/arabic/live/cvp5r6m6mgpt',
runforEnv: ['local', 'test'],
service: 'arabic',
pageIdentifier: 'live_coverage.cvp5r6m6mgpt.page',
siteId: 5,
applicationType: 'responsive',
contentType: 'live-coverage',
tests: [
assertPageView,
assertScrollableNavigationComponentView,
assertScrollableNavigationComponentClick,
assertDropdownNavigationComponentView,
assertDropdownNavigationComponentClick,
],
},
// {
// path: '/pidgin/live/c7p765ynk9qt',
// runforEnv: ['local'],
// service: 'pidgin',
// pageIdentifier: 'live_coverage.c7p765ynk9qt.page',
// siteId: 70,
// applicationType: 'responsive',
// contentType: 'live-coverage',
// tests: [
// assertPageView,
// assertScrollableNavigationComponentView,
// assertScrollableNavigationComponentClick,
// assertDropdownNavigationComponentView,
// assertDropdownNavigationComponentClick,
// ],
// },
// {
// path: '/urdu/live/cx2qdkezzzvt',
// runforEnv: ['live'],
// service: 'urdu',
// pageIdentifier: 'live_coverage.cx2qdkezzzvt.page',
// siteId: 95,
// applicationType: 'responsive',
// contentType: 'live-coverage',
// tests: [
// assertPageView,
// assertScrollableNavigationComponentView,
// assertScrollableNavigationComponentClick,
// assertDropdownNavigationComponentView,
// assertDropdownNavigationComponentClick,
// ],
// },
] as unknown as TestDataType[];
describe('Live Page Spec', () => {
runTestsForPage({
pageType: LIVE_PAGE,
testSuites: testDetails,
});
runTestsForPage({
pageType: LIVE_PAGE,
testSuites: atiAnalyticsTestSuites,
testIsolation: true,
});
});