Skip to content

Commit

Permalink
e2e/feature/RIVS-303_encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-dargel committed Dec 17, 2024
1 parent 0736188 commit 25f718e
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions tests/e2e/src/tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ describe('Agreements Verification', () => {
)
await eulaView.switchToInnerViewFrame(InnerViews.EulaInnerView)
// Verify that the encryption enabled by default and specific message
// TODO unskip once encryption enabled on ci
// expect(
// await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
// ).eql(true, 'Encryption switcher is not checked')
expect(
await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
).eql(true, 'Encryption switcher is not checked')
// Verify that Submit button disabled by default if EULA not accepted
expect(
await eulaView.isElementDisabled(eulaView.submitButton, 'class'),
Expand All @@ -91,20 +90,20 @@ describe('Agreements Verification', () => {
expect(
await CheckboxActions.getCheckboxState(eulaView.analyticsCheckbox),
).eql(true, 'Enable Analytics switcher is not checked')
// TODO unskip once encryption enabled on ci
// expect(
// await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
// ).eql(true, 'Encryption switcher is not checked')

expect(
await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
).eql(true, 'Encryption switcher is not checked')
// Uncheck Use recommended settings switcher
await CheckboxActions.toggleCheckbox(eulaView.useRecommendedCheckbox, false)
// Verify that when user unchecks "Use recommended settings" option on EULA screen, previous state of checkboxes for the options is applied
expect(
await CheckboxActions.getCheckboxState(eulaView.analyticsCheckbox),
).eql(false, 'Enable Analytics switcher is checked')
// TODO unskip once encryption enabled on ci
// expect(
// await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
// ).eql(true, 'Encryption switcher is not checked')

expect(
await CheckboxActions.getCheckboxState(eulaView.encryptionCheckbox),
).eql(true, 'Encryption switcher is not checked')
expect(await CheckboxActions.getCheckboxState(eulaView.eulaCheckbox)).eql(
false,
'EULA switcher is checked',
Expand All @@ -119,14 +118,14 @@ describe('Agreements Verification', () => {
expect(
await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
).eql(false, 'Use recommended settings switcher is still checked')
// TODO unskip once encryption enabled on ci

// Check Use recommended settings switcher
// await CheckboxActions.toggleCheckbox(eulaView.useRecommendedCheckbox, true)
await CheckboxActions.toggleCheckbox(eulaView.useRecommendedCheckbox, true)
// Verify Use recommended settings switcher unchecked after unchecking encryption switcher
// await CheckboxActions.toggleCheckbox(eulaView.encryptionCheckbox, false)
// expect(
// await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
// ).eql(false, 'Use recommended settings switcher is still checked')
await CheckboxActions.toggleCheckbox(eulaView.encryptionCheckbox, false)
expect(
await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
).eql(false, 'Use recommended settings switcher is still checked')
})

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

0 comments on commit 25f718e

Please sign in to comment.