Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13702 from AndreiH/bug937660_v1.2
Browse files Browse the repository at this point in the history
Bug 937660 - Move timezone settings from the setUp into testvars.json
  • Loading branch information
bobsilverberg committed Nov 14, 2013
2 parents 9aa8583 + 6281b49 commit da89963
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions tests/python/gaia-ui-tests/README.md
Expand Up @@ -229,6 +229,15 @@ Or:
"<setting>":<value>
}"
```
__Note__: When running with no SIM card or offline the timezone may not be automatically updated to match the local timezone. In that case you may need to force the timezone to match the desired timezone using settings in testvars.json which will set it during the test setUp:

```
"settings:{
"time.timezone": <value>,
"time.timezone.user-selected": <value>
}"
```



Test data Prerequisites
Expand Down
4 changes: 0 additions & 4 deletions tests/python/gaia-ui-tests/gaiatest/gaia_test.py
Expand Up @@ -493,10 +493,6 @@ def cleanUp(self):
# Switch off keyboard FTU screen
self.data_layer.set_setting("keyboard.ftu.enabled", False)

# Change timezone back to PST
self.data_layer.set_setting("time.timezone", "America/Los_Angeles")
self.data_layer.set_setting("time.timezone.user-selected", "America/Los_Angeles")

# restore settings from testvars
[self.data_layer.set_setting(name, value) for name, value in self.testvars.get('settings', {}).items()]

Expand Down

0 comments on commit da89963

Please sign in to comment.