feat(GODT-2554): Compute telemetry availability from API UserSettings.

This commit is contained in:
Romain Le Jeune
2023-04-13 08:06:48 +00:00
parent c7ae239350
commit 3928ed08f6
7 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Feature: Bridge send usage metrics
Background:
Given there exists an account with username "[user:user1]" and password "password"
And there exists an account with username "[user:user2]" and password "password"
And bridge starts
Scenario: Telemetry availability - No user
Then bridge telemetry feature is enabled
Scenario: Telemetry availability - Multi user
When the user logs in with username "[user:user1]" and password "password"
And user "[user:user1]" finishes syncing
Then bridge telemetry feature is enabled
When the user logs in with username "[user:user2]" and password "password"
And user "[user:user2]" finishes syncing
When user "[user:user2]" has telemetry set to 0
Then bridge telemetry feature is disabled