@@ -115,26 +115,30 @@ async def test_TC_SEAR_1_5(self):
115
115
116
116
if self .check_pics ("SEAR.S.M.INVALID_STATE_FOR_SKIP" ) and self .check_pics ("SEAR.S.M.HAS_MANUAL_SKIP_STATE_CONTROL" ):
117
117
test_step = "Manually intervene to put the device in a state that prevents it from executing the SkipArea command \
118
- (e.g. set CurrentArea to null or make it not operate, i.e. be in the idle state)"
118
+ (e.g. set CurrentArea to null or make it not operate, i.e. be in the idle state). Ensure that SelectedArea is not empty. "
119
119
self .print_step ("3" , test_step )
120
- if not self .is_ci :
120
+ if self .is_ci :
121
+ await self .send_single_cmd (cmd = Clusters .Objects .ServiceArea .Commands .SelectAreas (newAreas = [7 ]),
122
+ endpoint = self .endpoint )
123
+ else :
121
124
self .wait_for_user_input (prompt_msg = f"{ test_step } , and press Enter when done.\n " )
122
125
123
- await self .send_cmd_skip_area_expect_response (step = 4 , skipped_area = valid_area_id ,
124
- expected_response = Clusters .ServiceArea .Enums .SkipAreaStatus .kInvalidInMode )
126
+ await self .send_cmd_skip_area_expect_response (step = 4 , skipped_area = valid_area_id ,
127
+ expected_response = Clusters .ServiceArea .Enums .SkipAreaStatus .kInvalidInMode )
125
128
126
129
if self .check_pics ("SEAR.S.M.NO_SELAREA_FOR_SKIP" ) and self .check_pics ("SEAR.S.M.HAS_MANUAL_SKIP_STATE_CONTROL" ):
127
130
test_step = "Manually intervene to put the device in a state where the state would allow it to execute the SkipArea command, \
128
131
if SelectedAreas wasn't empty, and SelectedAreas is empty"
129
132
self .print_step ("5" , test_step )
130
133
if self .is_ci :
134
+ self .write_to_app_pipe ({"Name" : "Reset" })
131
135
await self .send_single_cmd (cmd = Clusters .Objects .RvcRunMode .Commands .ChangeToMode (newMode = 1 ),
132
136
endpoint = self .endpoint )
133
137
else :
134
138
self .wait_for_user_input (prompt_msg = f"{ test_step } , and press Enter when done.\n " )
135
139
136
- await self .send_cmd_skip_area_expect_response (step = 6 , skipped_area = valid_area_id ,
137
- expected_response = Clusters .ServiceArea .Enums .SkipAreaStatus .kInvalidAreaList )
140
+ await self .send_cmd_skip_area_expect_response (step = 6 , skipped_area = valid_area_id ,
141
+ expected_response = Clusters .ServiceArea .Enums .SkipAreaStatus .kInvalidAreaList )
138
142
139
143
if self .check_pics ("SEAR.S.M.VALID_STATE_FOR_SKIP" ) and self .check_pics ("SEAR.S.M.HAS_MANUAL_SKIP_STATE_CONTROL" ):
140
144
test_step = "Manually intervene to put the device in a state that allows it to execute the SkipArea command"
@@ -148,8 +152,8 @@ async def test_TC_SEAR_1_5(self):
148
152
else :
149
153
self .wait_for_user_input (prompt_msg = f"{ test_step } , and press Enter when done.\n " )
150
154
151
- await self .send_cmd_skip_area_expect_response (step = 8 , skipped_area = invalid_area_id ,
152
- expected_response = Clusters .ServiceArea .Enums .SkipAreaStatus .kInvalidSkippedArea )
155
+ await self .send_cmd_skip_area_expect_response (step = 8 , skipped_area = invalid_area_id ,
156
+ expected_response = Clusters .ServiceArea .Enums .SkipAreaStatus .kInvalidSkippedArea )
153
157
154
158
if not self .check_pics ("SEAR.S.M.VALID_STATE_FOR_SKIP" ):
155
159
return
0 commit comments