agent: add adapter for Takealot - #2633
Open
alectimison-maker wants to merge 1 commit into
Open
Conversation
|
@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Motivation
Takealot is listed as a high-priority African site in
CONTRIBUTING.md. Its checkout has several easy failure modes for a browser agent: third-party products use the normal ordering flow, delivery dates and fees depend on checkout choices, pre-orders cannot be mixed with other products, digital products cannot be cancelled, and an optional donation can appear before the final order summary.The behavior is based on Takealot's current official Help Centre pages for products and marketplace sellers, delivery and collection, pre-orders, placing orders, and cancellations.
Design
The adapter strictly matches the apex and
www.takealot.comhosts. Six dated bullets focus on stable visible labels and transaction states rather than selectors. The implementation is mirrored exactly across both browser builds.This is site-specific instead of reusing Amazon guidance because Pickup Points, isolated pre-orders, the R5 donation step, and Takealot's delivery rules are different.
Testing
node test/security/injection-corpus.mjs— 60/60 passednode test/run.js— the new Takealot test passed; the command still exits 1 on the upstream baseline's existing package/changelog mismatch (26.0.1versus26.0.0)Compatibility and risks
This is additive prompt guidance only: no API, config, storage, permission, or format changes. The main residual risk is future UI terminology drift, so the notes are dated
2026-08and avoid selectors. No live account, payment, or extension trace was used in this environment.Scope
This PR intentionally covers only Takealot. Other African marketplaces remain separate adapter contributions.