diff --git a/test/helpers/third-party-actions.ts b/test/helpers/third-party-actions.ts index e2c7774b9..725b60610 100644 --- a/test/helpers/third-party-actions.ts +++ b/test/helpers/third-party-actions.ts @@ -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); }); } diff --git a/test/third-party-actions.test.ts b/test/third-party-actions.test.ts index 49a589ad3..23055df59 100644 --- a/test/third-party-actions.test.ts +++ b/test/third-party-actions.test.ts @@ -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); });