Skip to content

Commit 25f718e

Browse files
committed
e2e/feature/RIVS-303_encryption
1 parent 0736188 commit 25f718e

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

tests/e2e/src/tests/setup.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ describe('Agreements Verification', () => {
6363
)
6464
await eulaView.switchToInnerViewFrame(InnerViews.EulaInnerView)
6565
// Verify that the encryption enabled by default and specific message
66-
// TODO unskip once encryption enabled on ci
67-
// expect(
68-
// await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
69-
// ).eql(true, 'Encryption switcher is not checked')
66+
expect(
67+
await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
68+
).eql(true, 'Encryption switcher is not checked')
7069
// Verify that Submit button disabled by default if EULA not accepted
7170
expect(
7271
await eulaView.isElementDisabled(eulaView.submitButton, 'class'),
@@ -91,20 +90,20 @@ describe('Agreements Verification', () => {
9190
expect(
9291
await CheckboxActions.getCheckboxState(eulaView.analyticsCheckbox),
9392
).eql(true, 'Enable Analytics switcher is not checked')
94-
// TODO unskip once encryption enabled on ci
95-
// expect(
96-
// await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
97-
// ).eql(true, 'Encryption switcher is not checked')
93+
94+
expect(
95+
await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
96+
).eql(true, 'Encryption switcher is not checked')
9897
// Uncheck Use recommended settings switcher
9998
await CheckboxActions.toggleCheckbox(eulaView.useRecommendedCheckbox, false)
10099
// Verify that when user unchecks "Use recommended settings" option on EULA screen, previous state of checkboxes for the options is applied
101100
expect(
102101
await CheckboxActions.getCheckboxState(eulaView.analyticsCheckbox),
103102
).eql(false, 'Enable Analytics switcher is checked')
104-
// TODO unskip once encryption enabled on ci
105-
// expect(
106-
// await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
107-
// ).eql(true, 'Encryption switcher is not checked')
103+
104+
expect(
105+
await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
106+
).eql(true, 'Encryption switcher is not checked')
108107
expect(await CheckboxActions.getCheckboxState(eulaView.eulaCheckbox)).eql(
109108
false,
110109
'EULA switcher is checked',
@@ -119,14 +118,14 @@ describe('Agreements Verification', () => {
119118
expect(
120119
await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
121120
).eql(false, 'Use recommended settings switcher is still checked')
122-
// TODO unskip once encryption enabled on ci
121+
123122
// Check Use recommended settings switcher
124-
// await CheckboxActions.toggleCheckbox(eulaView.useRecommendedCheckbox, true)
123+
await CheckboxActions.toggleCheckbox(eulaView.useRecommendedCheckbox, true)
125124
// Verify Use recommended settings switcher unchecked after unchecking encryption switcher
126-
// await CheckboxActions.toggleCheckbox(eulaView.encryptionCheckbox, false)
127-
// expect(
128-
// await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
129-
// ).eql(false, 'Use recommended settings switcher is still checked')
125+
await CheckboxActions.toggleCheckbox(eulaView.encryptionCheckbox, false)
126+
expect(
127+
await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
128+
).eql(false, 'Use recommended settings switcher is still checked')
130129
})
131130

132131
it('Verify that user can accept User Agreements', async () => {

0 commit comments

Comments
 (0)