In the MVP of federated properties, there will be several scenarios in which users will have to leave their local Wikibase in order to access information about properties on the source Wiki (in this case, Wikidata.org). When clicking on a link that redirects to Wikidata (with the exception of the Special:List of Properties page), users will see a notification.
We want logged in users to be able to choose to disable these notifications permanently. It would also be beneficial to allow anonymous users to disable the notifications.
Note: there is similar code for wikibase (entity view), and termbox (license agreement related) that allows cookie-based for anonymous users and user preferences for logged in users.
BDD (initially selecting to disable notifications -- logged in users)
Given I am logged into the Wikibase and the popup displays notifying me that the link I clicked points to a remote source Wiki
WhenI check "Don't show me this message again"
And select "Continue to the source Wiki"
Then my choice to disable notifications is added to my user preferences
And the property page on the source Wiki (e.g. Wikidata) opens according to my default browser behavior
BDD (initially selecting to disable notifications -- anonymous users)
Given I am not logged into the Wikibase and the popup displays notifying me that the link I clicked points to a remote source Wiki
WhenI check "Don't show me this message again"
And select "Continue to the source Wiki"
Then my choice to disable notifications is tracked via cookie
And the property page on the source Wiki (e.g. Wikidata) opens according to my default browser behavior
BDD (clicking link to remote property after disabling notifications)
Given I am on a Wikibase with federation enabled and have previously disabled notifications
WhenI select a link that points to a remote property on the item or revision history page
Then the property page on the source wiki (e.g. Wikidata) opens according to my default browser behavior
Mock
Refer to T246125 for mock.