mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-06 20:43:46 +08:00
Align Galaxy test fixtures with current developer controls
This commit is contained in:
@@ -25,7 +25,7 @@ assert.ok(GalaxyPage.template.includes('<LocalAccess v-if="!ios" :mode="mode" :o
|
||||
assert.ok(!GalaxyPage.template.includes('PWA'))
|
||||
assert.ok(DriveStatePanel.template.includes('gx-card gx-force-drive'))
|
||||
const css = readFileSync(new URL('../web/css/galaxy.css', import.meta.url), 'utf8')
|
||||
assert.match(DriveStatePanel.template, /<div class="gx-section__header">.*Force Drive State/)
|
||||
assert.match(DriveStatePanel.template, /<div v-if="!offroadOnly" class="gx-section__header">.*Force Drive State/)
|
||||
assert.match(css, /\.gx-panel \{ padding: var\(--panel-padding\);/)
|
||||
for (const component of [Home, DriveStatePanel, GalaxyPage])
|
||||
compile(component.template, { decodeEntities: value => value.replaceAll('&', '&') })
|
||||
|
||||
@@ -57,9 +57,9 @@ class TestOffroadConfigurationPages(unittest.TestCase):
|
||||
current = self.editable_inventory(self.page(name))
|
||||
expected = saved[name]
|
||||
if name == 'developer':
|
||||
self.assertEqual([row[0] for row in expected], ['Use VOACC'])
|
||||
self.assertFalse(expected[0][1])
|
||||
self.assertTrue(current[0][1])
|
||||
self.assertEqual([row[0] for row in expected], ['Use VOACC', 'Try Chubbs Lane Centering'])
|
||||
self.assertEqual([row[1] for row in expected], [False, False])
|
||||
self.assertEqual([row[1] for row in current], [True, True])
|
||||
expected = [(row[0], True, *row[2:]) for row in expected]
|
||||
if name == 'profiles':
|
||||
# Saved configuration uses the native catalog; this preference is Galaxy-only.
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "c039ad1560a9abaa906ce3988f5f0a9b16c76abc470eafe2d955fea9096a7e25", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "342ebd34de3bf25b67db2aaad0f891d307560ee132fdea15059e22c66b8081f0", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user