fix(qa): restore Google 3D before switching Street View off in gate cleanup

The Street View step's cleanup switched the Street View chip off after the
step had left Google 3D, where the chip is hidden by design. The click then
threw "failed to find element", replacing the step's real result (here, a
Google key refusal) with a selector error. Return to Google 3D first, then
switch the chips and restore the original map.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Sameh KhamisandClaude Opus 5.5 committed 2026-10-08 11:05:43 -07:00
1 parent 84f634efb0
commit f5c4f3fda3
1 file changed
+4
+4
View File
@@ -2000,6 +2000,10 @@ async function main() {
);
} finally {
await closePhoto();
// Off Google 3D the Street View chip is hidden: return to it
// before switching the chip, or the cleanup throws and hides
// the step's own result.
await stacks.set('photoreal');
await setOn(chip, 'mapillary', true);
await setOn(googleChip, 'google', false);
await stacks.set(original);