QAART-439: Refactor user editor preference tests

The refactoring for the test to use data provider is to provide a more robust test. In the future, adding test for additional user, wiki or wg variable would be as simple as modifying the switch cases and data provider.
Please use proper encapsulation