@comicrelief/component-library 7.20.0 → 7.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/{integration/components/atoms/button.spec.js → e2e/components/atoms/button.cy.js} +4 -15
- package/cypress/{integration/components/atoms/buttonWithStates.spec.js → e2e/components/atoms/buttonWithStates.cy.js} +5 -11
- package/cypress/{integration/components/atoms/checkbox.spec.js → e2e/components/atoms/checkbox.cy.js} +2 -0
- package/cypress/{integration/components/atoms/confetti.spec.js → e2e/components/atoms/confetti.cy.js} +2 -8
- package/cypress/{integration/components/atoms/errorText.spec.js → e2e/components/atoms/errorText.cy.js} +1 -7
- package/cypress/{integration/components/atoms/input.spec.js → e2e/components/atoms/input.cy.js} +4 -14
- package/cypress/{integration/components/atoms/label.spec.js → e2e/components/atoms/label.cy.js} +3 -14
- package/cypress/{integration/components/atoms/link.spec.js → e2e/components/atoms/link.cy.js} +4 -21
- package/cypress/{integration/components/atoms/logo.spec.js → e2e/components/atoms/logo.cy.js} +4 -21
- package/cypress/{integration/components/atoms/pagination.spec.js → e2e/components/atoms/pagination.cy.js} +5 -28
- package/cypress/{integration/components/atoms/picture.spec.js → e2e/components/atoms/picture.cy.js} +4 -21
- package/cypress/{integration/components/atoms/radioButton.spec.js → e2e/components/atoms/radioButton.cy.js} +2 -7
- package/cypress/{integration/components/atoms/richText.spec.js → e2e/components/atoms/richText.cy.js} +2 -7
- package/cypress/{integration/components/atoms/select.spec.js → e2e/components/atoms/select.cy.js} +2 -7
- package/cypress/{integration/components/atoms/socialIcons.spec.js → e2e/components/atoms/socialIcons.cy.js} +4 -21
- package/cypress/{integration/components/atoms/text.spec.js → e2e/components/atoms/text.cy.js} +3 -14
- package/cypress/{integration/components/atoms/textArea.spec.js → e2e/components/atoms/textArea.cy.js} +2 -4
- package/cypress/{integration/components/atoms/textInputWithDrop.spec.js → e2e/components/atoms/textInputWithDrop.cy.js} +2 -4
- package/cypress/{integration/components/molecules/accordion.spec.js → e2e/components/molecules/accordion.cy.js} +2 -7
- package/cypress/{integration/components/molecules/articleTeaser.spec.js → e2e/components/molecules/articleTeaser.cy.js} +2 -7
- package/cypress/{integration/components/molecules/banner.spec.js → e2e/components/molecules/banner.cy.js} +2 -7
- package/cypress/{integration/components/molecules/box.spec.js → e2e/components/molecules/box.cy.js} +3 -11
- package/cypress/{integration/components/molecules/card.spec.js → e2e/components/molecules/card.cy.js} +3 -11
- package/cypress/{integration/components/molecules/cardDs.spec.js → e2e/components/molecules/cardDs.cy.js} +5 -30
- package/cypress/{integration/components/molecules/chip.spec.js → e2e/components/molecules/chip.cy.js} +2 -4
- package/cypress/{integration/components/molecules/countdown.spec.js → e2e/components/molecules/countdown.cy.js} +2 -4
- package/cypress/{integration/components/molecules/descriptor.spec.js → e2e/components/molecules/descriptor.cy.js} +3 -8
- package/cypress/{integration/components/molecules/doubleCopy.spec.js → e2e/components/molecules/doubleCopy.cy.js} +2 -4
- package/cypress/{integration/components/molecules/heroBanner.spec.js → e2e/components/molecules/heroBanner.cy.js} +2 -4
- package/cypress/{integration/components/molecules/infoBanner.spec.js → e2e/components/molecules/infoBanner.cy.js} +2 -4
- package/cypress/{integration/components/molecules/partnerLink.spec.js → e2e/components/molecules/partnerLink.cy.js} +2 -4
- package/cypress/{integration/components/molecules/promo.spec.js → e2e/components/molecules/promo.cy.js} +2 -4
- package/cypress/{integration/components/molecules/schoolLookup.spec.js → e2e/components/molecules/schoolLookup.cy.js} +3 -4
- package/cypress/{integration/components/molecules/searchInput.spec.js → e2e/components/molecules/searchInput.cy.js} +2 -4
- package/cypress/{integration/components/molecules/searchResult.spec.js → e2e/components/molecules/searchResult.cy.js} +5 -16
- package/cypress/{integration/components/molecules/shareButton.spec.js → e2e/components/molecules/shareButton.cy.js} +2 -4
- package/cypress/{integration/components/molecules/simpleSchoolLookup.spec.js → e2e/components/molecules/simpleSchoolLookup.cy.js} +3 -4
- package/cypress/{integration/components/molecules/singleMessage.spec.js → e2e/components/molecules/singleMessage.cy.js} +14 -49
- package/cypress/{integration/components/molecules/singleMessageDs.spec.js → e2e/components/molecules/singleMessageDs.cy.js} +6 -20
- package/cypress/{integration/components/molecules/typeahead.spec.js → e2e/components/molecules/typeahead.cy.js} +3 -4
- package/cypress/{integration/components/molecules/videoBanner.spec.js → e2e/components/molecules/videoBanner.cy.js} +4 -12
- package/cypress/{integration/components/organisms/cookieBanner.spec.js → e2e/components/organisms/cookieBanner.cy.js} +2 -4
- package/cypress/{integration/components/organisms/donate.spec.js → e2e/components/organisms/donate.cy.js} +5 -16
- package/cypress/{integration/components/organisms/emailSignUp.spec.js → e2e/components/organisms/emailSignUp.cy.js} +1 -4
- package/cypress/{integration/components/organisms/footer.spec.js → e2e/components/organisms/footer.cy.js} +2 -0
- package/cypress/{integration/components/organisms/header.spec.js → e2e/components/organisms/header.cy.js} +3 -8
- package/cypress/{integration/components/organisms/marketingPreferencesDSForm.spec.js → e2e/components/organisms/marketingPreferencesDSForm.cy.js} +44 -56
- package/cypress/{integration/components/organisms/membership.spec.js → e2e/components/organisms/membership.cy.js} +3 -8
- package/cypress.config.js +15 -0
- package/dist/components/Atoms/Link/Link.js +5 -5
- package/dist/components/Molecules/Promo/Promo.js +87 -12
- package/dist/components/Molecules/Promo/Promo.md +266 -4
- package/dist/components/Molecules/Promo/Promo.style.js +24 -6
- package/dist/components/Molecules/Promo/Promo.test.js +2 -2
- package/dist/components/Molecules/Promo/_ProgressRing.js +57 -0
- package/dist/components/Molecules/Promo/_PromoVideo.js +116 -0
- package/dist/components/Molecules/Promo/_PromoVideoButton.js +31 -0
- package/dist/components/Molecules/Promo/_PromoVideoButton.style.js +110 -0
- package/dist/components/Molecules/Promo/assets/Pause--black.svg +3 -0
- package/dist/components/Molecules/Promo/assets/Pause--white.svg +3 -0
- package/dist/components/Molecules/Promo/assets/Play--black.svg +3 -0
- package/dist/components/Molecules/Promo/assets/Play--white.svg +3 -0
- package/dist/components/Organisms/Footer/Footer.js +1 -1
- package/dist/components/Organisms/Footer/Footer.md +2 -2
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +2 -2
- package/dist/components/Organisms/Footer/data/data.js +2 -2
- package/dist/components/Organisms/Header/Nav/Nav.js +2 -2
- package/dist/components/Organisms/Header/data/data.js +2 -2
- package/dist/index.js +3 -3
- package/dist/styleguide/assets/mobileVideoPosterImage.png +0 -0
- package/dist/utils/{whiteListed.js → allowListed.js} +4 -4
- package/dist/utils/allowListed.test.js +12 -0
- package/docs/utils.md +4 -4
- package/package.json +2 -2
- package/src/components/Atoms/Link/Link.js +5 -5
- package/src/components/Molecules/Promo/Promo.js +89 -13
- package/src/components/Molecules/Promo/Promo.md +266 -4
- package/src/components/Molecules/Promo/Promo.style.js +23 -2
- package/src/components/Molecules/Promo/Promo.test.js +2 -2
- package/src/components/Molecules/Promo/_ProgressRing.js +43 -0
- package/src/components/Molecules/Promo/_PromoVideo.js +105 -0
- package/src/components/Molecules/Promo/_PromoVideoButton.js +26 -0
- package/src/components/Molecules/Promo/_PromoVideoButton.style.js +121 -0
- package/src/components/Molecules/Promo/assets/Pause--black.svg +3 -0
- package/src/components/Molecules/Promo/assets/Pause--white.svg +3 -0
- package/src/components/Molecules/Promo/assets/Play--black.svg +3 -0
- package/src/components/Molecules/Promo/assets/Play--white.svg +3 -0
- package/src/components/Organisms/Footer/Footer.js +2 -2
- package/src/components/Organisms/Footer/Footer.md +2 -2
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +2 -2
- package/src/components/Organisms/Footer/data/data.js +2 -2
- package/src/components/Organisms/Header/Nav/Nav.js +2 -2
- package/src/components/Organisms/Header/data/data.js +2 -2
- package/src/index.js +1 -1
- package/src/styleguide/assets/mobileVideoPosterImage.png +0 -0
- package/src/utils/{whiteListed.js → allowListed.js} +6 -5
- package/src/utils/allowListed.test.js +9 -0
- package/cypress.json +0 -6
- package/dist/utils/whiteListed.test.js +0 -12
- package/src/utils/whiteListed.test.js +0 -9
- /package/cypress/support/{index.js → e2e.js} +0 -0
|
@@ -6,6 +6,7 @@ describe('School Lookup component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#schoollookup');
|
|
9
10
|
cy.get('[data-testid="SchoolLookup-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('School Lookup component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('view code section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#schoollookup');
|
|
38
40
|
cy.get('[data-testid="SchoolLookup-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="SchoolLookup"]')
|
|
@@ -56,14 +58,11 @@ describe('School Lookup component', () => {
|
|
|
56
58
|
.find('textarea')
|
|
57
59
|
.should('exist');
|
|
58
60
|
});
|
|
59
|
-
|
|
60
|
-
it('closes code on click', () => {
|
|
61
|
-
cy.get('@viewCodeBtn').click();
|
|
62
|
-
});
|
|
63
61
|
});
|
|
64
62
|
|
|
65
63
|
describe('School lookup functionality', () => {
|
|
66
64
|
beforeEach(() => {
|
|
65
|
+
cy.visit('/#schoollookup');
|
|
67
66
|
cy.get('[data-testid="SchoolLookup-example-1"]')
|
|
68
67
|
.as('container')
|
|
69
68
|
.find('[data-preview="SchoolLookup"]')
|
|
@@ -6,6 +6,7 @@ describe('Search Input component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#searchinput');
|
|
9
10
|
cy.get('[data-testid="SearchInput-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Search Input component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('Search Input section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#searchinput');
|
|
38
40
|
cy.get('[data-testid="SearchInput-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="SearchInput"]')
|
|
@@ -66,9 +68,5 @@ describe('Search Input component', () => {
|
|
|
66
68
|
.find('textarea')
|
|
67
69
|
.should('exist');
|
|
68
70
|
});
|
|
69
|
-
|
|
70
|
-
it('closes code on click', () => {
|
|
71
|
-
cy.get('@viewCodeBtn').click();
|
|
72
|
-
});
|
|
73
71
|
});
|
|
74
72
|
});
|
|
@@ -6,6 +6,7 @@ describe('Search Result component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#searchresult');
|
|
9
10
|
cy.get('[data-testid="SearchResult-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Search Result component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('Search Result Minimalist section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#searchresult');
|
|
38
40
|
cy.get('[data-testid="SearchResult-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="SearchResult"]')
|
|
@@ -65,14 +67,11 @@ describe('Search Result component', () => {
|
|
|
65
67
|
.find('textarea')
|
|
66
68
|
.should('exist');
|
|
67
69
|
});
|
|
68
|
-
|
|
69
|
-
it('closes code on click', () => {
|
|
70
|
-
cy.get('@viewCodeBtn').click();
|
|
71
|
-
});
|
|
72
70
|
});
|
|
73
71
|
|
|
74
72
|
describe('Search Result with copy section', () => {
|
|
75
73
|
beforeEach(() => {
|
|
74
|
+
cy.visit('/#searchresult');
|
|
76
75
|
cy.get('[data-testid="SearchResult-example-3"]')
|
|
77
76
|
.as('container')
|
|
78
77
|
.find('[data-preview="SearchResult"]')
|
|
@@ -106,14 +105,11 @@ describe('Search Result component', () => {
|
|
|
106
105
|
.find('textarea')
|
|
107
106
|
.should('exist');
|
|
108
107
|
});
|
|
109
|
-
|
|
110
|
-
it('closes code on click', () => {
|
|
111
|
-
cy.get('@viewCodeBtn').click();
|
|
112
|
-
});
|
|
113
108
|
});
|
|
114
109
|
|
|
115
110
|
describe('Search Result with date section', () => {
|
|
116
111
|
beforeEach(() => {
|
|
112
|
+
cy.visit('/#searchresult');
|
|
117
113
|
cy.get('[data-testid="SearchResult-example-5"]')
|
|
118
114
|
.as('container')
|
|
119
115
|
.find('[data-preview="SearchResult"]')
|
|
@@ -150,14 +146,11 @@ describe('Search Result component', () => {
|
|
|
150
146
|
.find('textarea')
|
|
151
147
|
.should('exist');
|
|
152
148
|
});
|
|
153
|
-
|
|
154
|
-
it('closes code on click', () => {
|
|
155
|
-
cy.get('@viewCodeBtn').click();
|
|
156
|
-
});
|
|
157
149
|
});
|
|
158
150
|
|
|
159
151
|
describe('Search Result with date and type section', () => {
|
|
160
152
|
beforeEach(() => {
|
|
153
|
+
cy.visit('/#searchresult');
|
|
161
154
|
cy.get('[data-testid="SearchResult-example-5"]')
|
|
162
155
|
.as('container')
|
|
163
156
|
.find('[data-preview="SearchResult"]')
|
|
@@ -194,9 +187,5 @@ describe('Search Result component', () => {
|
|
|
194
187
|
.find('textarea')
|
|
195
188
|
.should('exist');
|
|
196
189
|
});
|
|
197
|
-
|
|
198
|
-
it('closes code on click', () => {
|
|
199
|
-
cy.get('@viewCodeBtn').click();
|
|
200
|
-
});
|
|
201
190
|
});
|
|
202
191
|
});
|
|
@@ -6,6 +6,7 @@ describe('Share Button component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#sharebutton');
|
|
9
10
|
cy.get('[data-testid="ShareButton-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Share Button component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('Share Button section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#sharebutton');
|
|
38
40
|
cy.get('[data-testid="ShareButton-example-0"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="ShareButton"]')
|
|
@@ -70,9 +72,5 @@ describe('Share Button component', () => {
|
|
|
70
72
|
.find('textarea')
|
|
71
73
|
.should('exist');
|
|
72
74
|
});
|
|
73
|
-
|
|
74
|
-
it('closes code on click', () => {
|
|
75
|
-
cy.get('@viewCodeBtn').click();
|
|
76
|
-
});
|
|
77
75
|
});
|
|
78
76
|
});
|
|
@@ -6,6 +6,7 @@ describe('SimpleSchoolLookup component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#simpleschoollookup');
|
|
9
10
|
cy.get('[data-testid="SimpleSchoolLookup-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('SimpleSchoolLookup component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('view code section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#simpleschoollookup');
|
|
38
40
|
cy.get('[data-testid="SimpleSchoolLookup-examples"]')
|
|
39
41
|
.as('container');
|
|
40
42
|
|
|
@@ -54,14 +56,11 @@ describe('SimpleSchoolLookup component', () => {
|
|
|
54
56
|
.find('textarea')
|
|
55
57
|
.should('exist');
|
|
56
58
|
});
|
|
57
|
-
|
|
58
|
-
it('closes code on click', () => {
|
|
59
|
-
cy.get('@viewCodeBtn').click();
|
|
60
|
-
});
|
|
61
59
|
});
|
|
62
60
|
|
|
63
61
|
describe('Simple School lookup functionality', () => {
|
|
64
62
|
beforeEach(() => {
|
|
63
|
+
cy.visit('/#simpleschoollookup');
|
|
65
64
|
cy.get('[data-testid="SimpleSchoolLookup-example-0"]')
|
|
66
65
|
.as('container')
|
|
67
66
|
.find('[data-preview="SimpleSchoolLookup"]')
|
|
@@ -6,6 +6,7 @@ describe('Single Message component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#singlemessage');
|
|
9
10
|
cy.get('[data-testid="SingleMessage-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Single Message component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('Single message section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#singlemessage');
|
|
38
40
|
cy.get('[data-testid="SingleMessage-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -71,14 +73,11 @@ describe('Single Message component', () => {
|
|
|
71
73
|
.find('textarea')
|
|
72
74
|
.should('exist');
|
|
73
75
|
});
|
|
74
|
-
|
|
75
|
-
it('closes code on click', () => {
|
|
76
|
-
cy.get('@viewCodeBtn').click();
|
|
77
|
-
});
|
|
78
76
|
});
|
|
79
77
|
|
|
80
78
|
describe('Single Message fullImage section', () => {
|
|
81
79
|
beforeEach(() => {
|
|
80
|
+
cy.visit('/#singlemessage');
|
|
82
81
|
cy.get('[data-testid="SingleMessage-example-3"]')
|
|
83
82
|
.as('container')
|
|
84
83
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -115,14 +114,11 @@ describe('Single Message component', () => {
|
|
|
115
114
|
.find('textarea')
|
|
116
115
|
.should('exist');
|
|
117
116
|
});
|
|
118
|
-
|
|
119
|
-
it('closes code on click', () => {
|
|
120
|
-
cy.get('@viewCodeBtn').click();
|
|
121
|
-
});
|
|
122
117
|
});
|
|
123
118
|
|
|
124
119
|
describe('Single Message fullImage no copy section', () => {
|
|
125
120
|
beforeEach(() => {
|
|
121
|
+
cy.visit('/#singlemessage');
|
|
126
122
|
cy.get('[data-testid="SingleMessage-example-5"]')
|
|
127
123
|
.as('container')
|
|
128
124
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -156,14 +152,11 @@ describe('Single Message component', () => {
|
|
|
156
152
|
.find('textarea')
|
|
157
153
|
.should('exist');
|
|
158
154
|
});
|
|
159
|
-
|
|
160
|
-
it('closes code on click', () => {
|
|
161
|
-
cy.get('@viewCodeBtn').click();
|
|
162
|
-
});
|
|
163
155
|
});
|
|
164
156
|
|
|
165
157
|
describe('Single Message fullImage no image section', () => {
|
|
166
158
|
beforeEach(() => {
|
|
159
|
+
cy.visit('/#singlemessage');
|
|
167
160
|
cy.get('[data-testid="SingleMessage-example-7"]')
|
|
168
161
|
.as('container')
|
|
169
162
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -196,15 +189,12 @@ describe('Single Message component', () => {
|
|
|
196
189
|
cy.get('@container')
|
|
197
190
|
.find('textarea')
|
|
198
191
|
.should('exist');
|
|
199
|
-
})
|
|
200
|
-
|
|
201
|
-
it('closes code on click', () => {
|
|
202
|
-
cy.get('@viewCodeBtn').click();
|
|
203
|
-
});
|
|
192
|
+
})
|
|
204
193
|
});
|
|
205
194
|
|
|
206
195
|
describe('Single Message vertical height 100% section', () => {
|
|
207
196
|
beforeEach(() => {
|
|
197
|
+
cy.visit('/#singlemessage');
|
|
208
198
|
cy.get('[data-testid="SingleMessage-example-9"]')
|
|
209
199
|
.as('container')
|
|
210
200
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -238,14 +228,11 @@ describe('Single Message component', () => {
|
|
|
238
228
|
.find('textarea')
|
|
239
229
|
.should('exist');
|
|
240
230
|
});
|
|
241
|
-
|
|
242
|
-
it('closes code on click', () => {
|
|
243
|
-
cy.get('@viewCodeBtn').click();
|
|
244
|
-
});
|
|
245
231
|
});
|
|
246
232
|
|
|
247
233
|
describe('Single Message double image section', () => {
|
|
248
234
|
beforeEach(() => {
|
|
235
|
+
cy.visit('/#singlemessage');
|
|
249
236
|
cy.get('[data-testid="SingleMessage-example-11"]')
|
|
250
237
|
.as('container')
|
|
251
238
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -283,14 +270,11 @@ describe('Single Message component', () => {
|
|
|
283
270
|
.find('textarea')
|
|
284
271
|
.should('exist');
|
|
285
272
|
});
|
|
286
|
-
|
|
287
|
-
it('closes code on click', () => {
|
|
288
|
-
cy.get('@viewCodeBtn').click();
|
|
289
|
-
});
|
|
290
273
|
});
|
|
291
274
|
|
|
292
275
|
describe('Single Message with 16:9 video section', () => {
|
|
293
276
|
beforeEach(() => {
|
|
277
|
+
cy.visit('/#singlemessage');
|
|
294
278
|
cy.get('[data-testid="SingleMessage-example-13"]')
|
|
295
279
|
.as('container')
|
|
296
280
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -326,14 +310,11 @@ describe('Single Message component', () => {
|
|
|
326
310
|
.find('textarea')
|
|
327
311
|
.should('exist');
|
|
328
312
|
});
|
|
329
|
-
|
|
330
|
-
it('closes code on click', () => {
|
|
331
|
-
cy.get('@viewCodeBtn').click();
|
|
332
|
-
});
|
|
333
313
|
});
|
|
334
314
|
|
|
335
315
|
describe('Single Message with 16:9 video left section', () => {
|
|
336
316
|
beforeEach(() => {
|
|
317
|
+
cy.visit('/#singlemessage');
|
|
337
318
|
cy.get('[data-testid="SingleMessage-example-14"]')
|
|
338
319
|
.as('container')
|
|
339
320
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -369,14 +350,11 @@ describe('Single Message component', () => {
|
|
|
369
350
|
.find('textarea')
|
|
370
351
|
.should('exist');
|
|
371
352
|
});
|
|
372
|
-
|
|
373
|
-
it('closes code on click', () => {
|
|
374
|
-
cy.get('@viewCodeBtn').click();
|
|
375
|
-
});
|
|
376
353
|
});
|
|
377
354
|
|
|
378
355
|
describe('Single Message with portrait video section', () => {
|
|
379
356
|
beforeEach(() => {
|
|
357
|
+
cy.visit('/#singlemessage');
|
|
380
358
|
cy.get('[data-testid="SingleMessage-example-16"]')
|
|
381
359
|
.as('container')
|
|
382
360
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -412,14 +390,11 @@ describe('Single Message component', () => {
|
|
|
412
390
|
.find('textarea')
|
|
413
391
|
.should('exist');
|
|
414
392
|
});
|
|
415
|
-
|
|
416
|
-
it('closes code on click', () => {
|
|
417
|
-
cy.get('@viewCodeBtn').click();
|
|
418
|
-
});
|
|
419
393
|
});
|
|
420
394
|
|
|
421
395
|
describe('Single Message with portrait video, 100VH section', () => {
|
|
422
396
|
beforeEach(() => {
|
|
397
|
+
cy.visit('/#singlemessage');
|
|
423
398
|
cy.get('[data-testid="SingleMessage-example-18"]')
|
|
424
399
|
.as('container')
|
|
425
400
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -451,14 +426,11 @@ describe('Single Message component', () => {
|
|
|
451
426
|
.find('textarea')
|
|
452
427
|
.should('exist');
|
|
453
428
|
});
|
|
454
|
-
|
|
455
|
-
it('closes code on click', () => {
|
|
456
|
-
cy.get('@viewCodeBtn').click();
|
|
457
|
-
});
|
|
458
429
|
});
|
|
459
430
|
|
|
460
431
|
describe('Single Message with landscape video, 100VH, fullwidth image', () => {
|
|
461
432
|
beforeEach(() => {
|
|
433
|
+
cy.visit('/#singlemessage');
|
|
462
434
|
cy.get('[data-testid="SingleMessage-example-20"]')
|
|
463
435
|
.as('container')
|
|
464
436
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -490,14 +462,11 @@ describe('Single Message component', () => {
|
|
|
490
462
|
.find('textarea')
|
|
491
463
|
.should('exist');
|
|
492
464
|
});
|
|
493
|
-
|
|
494
|
-
it('closes code on click', () => {
|
|
495
|
-
cy.get('@viewCodeBtn').click();
|
|
496
|
-
});
|
|
497
465
|
});
|
|
498
466
|
|
|
499
467
|
describe('Single Message with landscape video, 50VH, fullwidth image', () => {
|
|
500
468
|
beforeEach(() => {
|
|
469
|
+
cy.visit('/#singlemessage');
|
|
501
470
|
cy.get('[data-testid="SingleMessage-example-22"]')
|
|
502
471
|
.as('container')
|
|
503
472
|
.find('[data-preview="SingleMessage"]')
|
|
@@ -529,9 +498,5 @@ describe('Single Message component', () => {
|
|
|
529
498
|
.find('textarea')
|
|
530
499
|
.should('exist');
|
|
531
500
|
});
|
|
532
|
-
|
|
533
|
-
it('closes code on click', () => {
|
|
534
|
-
cy.get('@viewCodeBtn').click();
|
|
535
|
-
});
|
|
536
501
|
});
|
|
537
502
|
});
|
|
@@ -6,6 +6,7 @@ describe('Single Message Ds component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#singlemessageds');
|
|
9
10
|
cy.get('[data-testid="SingleMessageDs-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Single Message Ds component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('SingleMessageDs-example-1: Image align left and CTA are clickable', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#singlemessageds');
|
|
38
40
|
cy.get('[data-testid="SingleMessageDs-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="SingleMessageDs"]')
|
|
@@ -72,14 +74,11 @@ describe('Single Message Ds component', () => {
|
|
|
72
74
|
.find('textarea')
|
|
73
75
|
.should('exist');
|
|
74
76
|
});
|
|
75
|
-
|
|
76
|
-
it('closes code on click', () => {
|
|
77
|
-
cy.get('@viewCodeBtn').click();
|
|
78
|
-
});
|
|
79
77
|
});
|
|
80
78
|
|
|
81
79
|
describe('SingleMessageDs-example-3: Image align right and CTA are clickable', () => {
|
|
82
80
|
beforeEach(() => {
|
|
81
|
+
cy.visit('/#singlemessageds');
|
|
83
82
|
cy.get('[data-testid="SingleMessageDs-example-3"]')
|
|
84
83
|
.as('container')
|
|
85
84
|
.find('[data-preview="SingleMessageDs"]')
|
|
@@ -116,14 +115,11 @@ describe('Single Message Ds component', () => {
|
|
|
116
115
|
.find('textarea')
|
|
117
116
|
.should('exist');
|
|
118
117
|
});
|
|
119
|
-
|
|
120
|
-
it('closes code on click', () => {
|
|
121
|
-
cy.get('@viewCodeBtn').click();
|
|
122
|
-
});
|
|
123
118
|
});
|
|
124
119
|
|
|
125
120
|
describe('SingleMessageDs-example-5: SingleMessageDs-example-5', () => {
|
|
126
121
|
beforeEach(() => {
|
|
122
|
+
cy.visit('/#singlemessageds');
|
|
127
123
|
cy.get('[data-testid="SingleMessageDs-example-5"]')
|
|
128
124
|
.as('container')
|
|
129
125
|
.find('[data-preview="SingleMessageDs"]')
|
|
@@ -158,14 +154,11 @@ describe('Single Message Ds component', () => {
|
|
|
158
154
|
.find('textarea')
|
|
159
155
|
.should('exist');
|
|
160
156
|
});
|
|
161
|
-
|
|
162
|
-
it('closes code on click', () => {
|
|
163
|
-
cy.get('@viewCodeBtn').click();
|
|
164
|
-
});
|
|
165
157
|
});
|
|
166
158
|
|
|
167
159
|
describe('SingleMessageDs-example-7: Using the linkIcon prop', () => {
|
|
168
160
|
beforeEach(() => {
|
|
161
|
+
cy.visit('/#singlemessageds');
|
|
169
162
|
cy.get('[data-testid="SingleMessageDs-example-7"]')
|
|
170
163
|
.as('container')
|
|
171
164
|
.find('[data-preview="SingleMessageDs"]')
|
|
@@ -199,14 +192,11 @@ describe('Single Message Ds component', () => {
|
|
|
199
192
|
.find('textarea')
|
|
200
193
|
.should('exist');
|
|
201
194
|
});
|
|
202
|
-
|
|
203
|
-
it('closes code on click', () => {
|
|
204
|
-
cy.get('@viewCodeBtn').click();
|
|
205
|
-
});
|
|
206
195
|
});
|
|
207
196
|
|
|
208
197
|
describe('SingleMessageDs-example-9: Video with no CTA', () => {
|
|
209
198
|
beforeEach(() => {
|
|
199
|
+
cy.visit('/#singlemessageds');
|
|
210
200
|
cy.get('[data-testid="SingleMessageDs-example-9"]')
|
|
211
201
|
.as('container')
|
|
212
202
|
.find('[data-preview="SingleMessageDs"]')
|
|
@@ -240,9 +230,5 @@ describe('Single Message Ds component', () => {
|
|
|
240
230
|
.find('textarea')
|
|
241
231
|
.should('exist');
|
|
242
232
|
});
|
|
243
|
-
|
|
244
|
-
it('closes code on click', () => {
|
|
245
|
-
cy.get('@viewCodeBtn').click();
|
|
246
|
-
});
|
|
247
233
|
});
|
|
248
234
|
});
|
|
@@ -6,6 +6,7 @@ describe('Typeahead component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#typeahead');
|
|
9
10
|
cy.get('[data-testid="Typeahead-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Typeahead component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('view code section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#typeahead');
|
|
38
40
|
cy.get('[data-testid="Typeahead-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="Typeahead"]')
|
|
@@ -56,14 +58,11 @@ describe('Typeahead component', () => {
|
|
|
56
58
|
.find('textarea')
|
|
57
59
|
.should('exist');
|
|
58
60
|
});
|
|
59
|
-
|
|
60
|
-
it('closes code on click', () => {
|
|
61
|
-
cy.get('@viewCodeBtn').click();
|
|
62
|
-
});
|
|
63
61
|
});
|
|
64
62
|
|
|
65
63
|
describe('Typeahead functionality', () => {
|
|
66
64
|
beforeEach(() => {
|
|
65
|
+
cy.visit('/#typeahead');
|
|
67
66
|
cy.get('[data-testid="Typeahead-example-1"]')
|
|
68
67
|
.as('container')
|
|
69
68
|
.find('[data-preview="Typeahead"]')
|
|
@@ -6,6 +6,7 @@ describe('Video Banner component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#videobanner');
|
|
9
10
|
cy.get('[data-testid="VideoBanner-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Video Banner component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('VideoBanner-example-1: Default Video Banner', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#videobanner');
|
|
38
40
|
cy.get('[data-testid="VideoBanner-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="VideoBanner"]')
|
|
@@ -62,14 +64,11 @@ describe('Video Banner component', () => {
|
|
|
62
64
|
.find('textarea')
|
|
63
65
|
.should('exist');
|
|
64
66
|
});
|
|
65
|
-
|
|
66
|
-
it('closes code on click', () => {
|
|
67
|
-
cy.get('@viewCodeBtn').click();
|
|
68
|
-
});
|
|
69
67
|
});
|
|
70
68
|
|
|
71
69
|
describe('VideoBanner-example-3: Looping Video Banner With Controls', () => {
|
|
72
70
|
beforeEach(() => {
|
|
71
|
+
cy.visit('/#videobanner');
|
|
73
72
|
cy.get('[data-testid="VideoBanner-example-3"]')
|
|
74
73
|
.as('container')
|
|
75
74
|
.find('[data-preview="VideoBanner"]')
|
|
@@ -97,14 +96,11 @@ describe('Video Banner component', () => {
|
|
|
97
96
|
.find('textarea')
|
|
98
97
|
.should('exist');
|
|
99
98
|
});
|
|
100
|
-
|
|
101
|
-
it('closes code on click', () => {
|
|
102
|
-
cy.get('@viewCodeBtn').click();
|
|
103
|
-
});
|
|
104
99
|
});
|
|
105
100
|
|
|
106
101
|
describe('VideoBanner-example-5: Non-autoplay Video Banner', () => {
|
|
107
102
|
beforeEach(() => {
|
|
103
|
+
cy.visit('/#videobanner');
|
|
108
104
|
cy.get('[data-testid="VideoBanner-example-5"]')
|
|
109
105
|
.as('container')
|
|
110
106
|
.find('[data-preview="VideoBanner"]')
|
|
@@ -132,9 +128,5 @@ describe('Video Banner component', () => {
|
|
|
132
128
|
.find('textarea')
|
|
133
129
|
.should('exist');
|
|
134
130
|
});
|
|
135
|
-
|
|
136
|
-
it('closes code on click', () => {
|
|
137
|
-
cy.get('@viewCodeBtn').click();
|
|
138
|
-
});
|
|
139
131
|
});
|
|
140
132
|
});
|
|
@@ -6,6 +6,7 @@ describe('Cookie Banner component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#cookiebanner');
|
|
9
10
|
cy.get('[data-testid="CookieBanner-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Cookie Banner component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('Cookie Banner section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#cookiebanner');
|
|
38
40
|
cy.get('[data-testid="CookieBanner-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="CookieBanner"]')
|
|
@@ -74,9 +76,5 @@ describe('Cookie Banner component', () => {
|
|
|
74
76
|
.find('textarea')
|
|
75
77
|
.should('exist');
|
|
76
78
|
});
|
|
77
|
-
|
|
78
|
-
it('closes code on click', () => {
|
|
79
|
-
cy.get('@viewCodeBtn').click();
|
|
80
|
-
});
|
|
81
79
|
});
|
|
82
80
|
});
|
|
@@ -6,6 +6,7 @@ describe('Donate component', () => {
|
|
|
6
6
|
|
|
7
7
|
describe('props and methods section', () => {
|
|
8
8
|
beforeEach(() => {
|
|
9
|
+
cy.visit('/#donate');
|
|
9
10
|
cy.get('[data-testid="Donate-container"] button[name="rsg-usage"]')
|
|
10
11
|
.contains('Props & methods')
|
|
11
12
|
.as('propsBtn');
|
|
@@ -35,6 +36,7 @@ describe('Donate component', () => {
|
|
|
35
36
|
|
|
36
37
|
describe('Donate Form align right section', () => {
|
|
37
38
|
beforeEach(() => {
|
|
39
|
+
cy.visit('/#donate');
|
|
38
40
|
cy.get('[data-testid="Donate-example-1"]')
|
|
39
41
|
.as('container')
|
|
40
42
|
.find('[data-preview="Donate"]')
|
|
@@ -97,14 +99,11 @@ describe('Donate component', () => {
|
|
|
97
99
|
.find('textarea')
|
|
98
100
|
.should('exist');
|
|
99
101
|
});
|
|
100
|
-
|
|
101
|
-
it('closes code on click', () => {
|
|
102
|
-
cy.get('@viewCodeBtn').click();
|
|
103
|
-
});
|
|
104
102
|
});
|
|
105
103
|
|
|
106
104
|
describe('Donate Form align left section', () => {
|
|
107
105
|
beforeEach(() => {
|
|
106
|
+
cy.visit('/#donate');
|
|
108
107
|
cy.get('[data-testid="Donate-example-3"]')
|
|
109
108
|
.as('container')
|
|
110
109
|
.find('[data-preview="Donate"]')
|
|
@@ -163,14 +162,11 @@ describe('Donate component', () => {
|
|
|
163
162
|
.find('textarea')
|
|
164
163
|
.should('exist');
|
|
165
164
|
});
|
|
166
|
-
|
|
167
|
-
it('closes code on click', () => {
|
|
168
|
-
cy.get('@viewCodeBtn').click();
|
|
169
|
-
});
|
|
170
165
|
});
|
|
171
166
|
|
|
172
167
|
describe('Single Giving section', () => {
|
|
173
168
|
beforeEach(() => {
|
|
169
|
+
cy.visit('/#donate');
|
|
174
170
|
cy.get('[data-testid="Donate-example-5"]')
|
|
175
171
|
.as('container')
|
|
176
172
|
.find('[data-preview="Donate"]')
|
|
@@ -228,14 +224,11 @@ describe('Donate component', () => {
|
|
|
228
224
|
.find('textarea')
|
|
229
225
|
.should('exist');
|
|
230
226
|
});
|
|
231
|
-
|
|
232
|
-
it('closes code on click', () => {
|
|
233
|
-
cy.get('@viewCodeBtn').click();
|
|
234
|
-
});
|
|
235
227
|
});
|
|
236
228
|
|
|
237
229
|
describe('Single Giving "No Money Buys" section', () => {
|
|
238
230
|
beforeEach(() => {
|
|
231
|
+
cy.visit('/#donate');
|
|
239
232
|
cy.get('[data-testid="Donate-example-7"]')
|
|
240
233
|
.as('container')
|
|
241
234
|
.find('[data-preview="Donate"]')
|
|
@@ -287,9 +280,5 @@ describe('Donate component', () => {
|
|
|
287
280
|
.find('textarea')
|
|
288
281
|
.should('exist');
|
|
289
282
|
});
|
|
290
|
-
|
|
291
|
-
it('closes code on click', () => {
|
|
292
|
-
cy.get('@viewCodeBtn').click();
|
|
293
|
-
});
|
|
294
283
|
});
|
|
295
284
|
});
|
|
@@ -7,6 +7,7 @@ describe('Email Sign Up component', () => {
|
|
|
7
7
|
|
|
8
8
|
describe('Email Sign Up section', () => {
|
|
9
9
|
beforeEach(() => {
|
|
10
|
+
cy.visit('/#emailsignupform');
|
|
10
11
|
cy.get('[data-testid="EmailSignUpForm-example-1"]')
|
|
11
12
|
.as('container')
|
|
12
13
|
.find('[data-preview="EmailSignUpForm"]')
|
|
@@ -49,9 +50,5 @@ describe('Email Sign Up component', () => {
|
|
|
49
50
|
cy.get('@viewCodeBtn').click();
|
|
50
51
|
cy.get('@container').find('textarea').should('exist');
|
|
51
52
|
});
|
|
52
|
-
|
|
53
|
-
it('closes code on click', () => {
|
|
54
|
-
cy.get('@viewCodeBtn').click();
|
|
55
|
-
});
|
|
56
53
|
});
|
|
57
54
|
});
|