Fix Jev mirror runtime boundaries for English UI and fast confirmations
This commit is contained in:
@@ -281,6 +281,24 @@ class SceneRegressionTest(unittest.TestCase):
|
||||
self.assertEqual(options['skip_dialog']['action'],
|
||||
{'tool': 'click', 'args': {'x': 1260, 'y': 420}})
|
||||
|
||||
def test_english_receiving_text_is_not_event_rec_indicator(self):
|
||||
state = {'items': [{'text': 'Receive this E.G.O Gift', 'x': 600,
|
||||
'y': 300, 'w': 320, 'h': 40}]}
|
||||
self.assertNotIn('event_advance', agent.candidates(state))
|
||||
|
||||
def test_exact_event_rec_indicator_still_advances_dialogue(self):
|
||||
state = {'items': [{'text': 'REC', 'x': 900, 'y': 200, 'w': 50, 'h': 30}]}
|
||||
self.assertIn('event_advance', agent.candidates(state))
|
||||
|
||||
def test_single_validated_confirmation_needs_no_model(self):
|
||||
options = {'wait': {}, 'requires_analysis': {}, 'confirm_startup_battery': {}}
|
||||
self.assertEqual(agent.unambiguous_routine(options), 'confirm_startup_battery')
|
||||
|
||||
def test_route_choices_and_unknown_single_actions_still_need_model(self):
|
||||
for actions in ({'route_1': {}}, {'event_scroll': {}},
|
||||
{'modal_confirm': {}, 'route_1': {}}):
|
||||
self.assertIsNone(agent.unambiguous_routine(dict(wait={}, requires_analysis={}, **actions)))
|
||||
|
||||
def test_floor_three_sinclair_cannot_choose_first_floor_swap(self):
|
||||
state = {'floor': 3, 'items': [
|
||||
{'text': '当前持有技能', 'x': 900, 'y': 160, 'w': 100, 'h': 30},
|
||||
|
||||
Reference in New Issue
Block a user