mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-03 13:18:58 +00:00
test: cover help and feedback browser flows (#43)
Issue: #43 User-Visible: no
This commit is contained in:
committed by
claude[bot]
parent
3e0124b7e9
commit
1a953718a7
@@ -4400,6 +4400,24 @@ const MUTANT_DEFINITIONS = [
|
||||
replace: ' this._devicePositionHistory.clear();',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'support-timeout-claims-success',
|
||||
guard: 'node demo/smoke_support_feedback.mjs',
|
||||
because: 'a relay timeout, rate limit or unknown command must preserve the draft and expose '
|
||||
+ 'manual recovery; claiming success loses the report while telling the user it was sent (#43)',
|
||||
patches: [{
|
||||
file: 'src/houseplan-editor-runtime.ts',
|
||||
find: " } catch (error: unknown) {\n"
|
||||
+ " if (!this._supportPatch(current.draftId, {\n"
|
||||
+ " status: 'error',\n"
|
||||
+ ' errorCode: supportErrorCode(error),',
|
||||
replace: " } catch (error: unknown) {\n"
|
||||
+ " if (!this._supportPatch(current.draftId, {\n"
|
||||
+ " status: 'success',\n"
|
||||
+ " reportId: 'HP-FALSE-SUCCESS',\n"
|
||||
+ " errorCode: '',",
|
||||
}],
|
||||
},
|
||||
];
|
||||
|
||||
const mutationCardSource = readFileSync(join(repoRoot, 'src/houseplan-card.ts'), 'utf8');
|
||||
|
||||
Reference in New Issue
Block a user