-
Notifications
You must be signed in to change notification settings - Fork 12
User data is always None #616
Description
All the tests with predefined user data are not working with this data. New accounts are created instead. That has to be fixed.
Examples:
The local db for account is stored in local_run_results folder (when running tests locally)
This is being taken from this -d parameter here
desktop-qa-automation/driver/aut.py
Line 118 in 229471c
| f'--datadir={self.app_data}', |
So, if we want to start application with existing data folder, this data folder should be present in the location in advance, before the test starts
I think , a solution here could be that we mark tests that use predefined data somehow, and then we create if condition for startaut function to recognise some flag - if the tests do need data in advance (we create it and put into repository), then execute command with certain hardcoded path (where the data folder lives) , else create new account (new data folder with random name as we have now)
maybe we can fix something here
if user_data is not None:
user_data.copy_to(self.app_data / 'data')
desktop-qa-automation/driver/aut.py
Line 27 in 229471c
| user_data: SystemPath = None |