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

Bug 1230200 - Fix failure in test_settings_battery_power_save_mode.py #33503

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def test_settings_battery_power_save_mode(self):
self.assertEqual(self.data_layer.get_setting('powersave.enabled'), False)

battery_settings.tap_turn_on_auto()
battery_settings.select('never')
battery_settings.select('Never')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use data-l10n-id="powerSave-never" instead. So next time somebody changes the typo, we won't be broken.

self.assertEqual(self.data_layer.get_setting('powersave.threshold'), '-1')
self.assertEqual(self.data_layer.get_setting('powersave.enabled'), False)