mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-04 15:57:33 +01:00
test(third-party-actions): the Aside drive-offer detector matches the product name, not the English idiom (paid run 38988927989 tpa-absent-linux false positive)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
641916c650
commit
32e1067be3
2 files changed
+4
-1
No files matched your search
@@ -20,6 +20,6 @@ export function asideDriveOptions(text: string): string[] {
|
||||
/\b(?:I|we)(?:['’]ll| will) (?:re[- ]?ask|ask again)(?: (?:you|this question))? with (?:the )?(?:"[^"]+"|“[^”]+”|[\w -]+?) option(?: included)?\b/gi,
|
||||
'',
|
||||
);
|
||||
return /\bAside\b/i.test(option) && /\b(?:drive|driving|browse|browsing|navigate|click)\b/i.test(currentOffer);
|
||||
return /\bAside\b/.test(option) && /\b(?:drive|driving|browse|browsing|navigate|click)\b/i.test(currentOffer);
|
||||
});
|
||||
}
|
||||
@@ -63,6 +63,9 @@ D) Defer
|
||||
|
||||
test('allows recovery questions but rejects conditional drive consent', () => {
|
||||
expect(asideDriveOptions('A) Open the Aside app so I can re-run the probe.')).toEqual([]);
|
||||
// Captured tpa-absent-linux answer (paid run 38988927989): the English idiom is not the Aside browser.
|
||||
expect(asideDriveOptions('D) Defer. I set this aside and mark it blocked on you, with no browsing now.')).toEqual([]);
|
||||
expect(asideDriveOptions('D) Defer, or I drive it in Aside later.')).toHaveLength(1);
|
||||
expect(asideDriveOptions('A) Open the Aside app; if READY, I drive the dashboard.')).toHaveLength(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user