Interview exercise #1
Open
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.
Interview Exercise
Welcome to the Capital Group technical interview take-home exercise. We recognize that your time is valuable, so we greatly appreciate you making the investment. There are no trick questions here, just a straightforward (and hopefully engaging) exercise that represents a typical test automation problem solved at work.
Expectations
We expect that this exercise will take a maximum of a few hours.
You will have a few days between receiving this exercise and the due date. Feel free to take your time, digest the problem and work at a pace and style that is suitable to you and your schedule.
We expect you to write code that you are proud of. This is not a race to see who can complete the exercise the fastest or in the fewest lines of code. Strive for your code to be of similar style and quality to your daily professional work. Imagine you are submitting a pull request to your team members to review and approve.
There are no constraints on strategies, methodologies, or patterns. Feel free to use any approach you find appropriate.
Please use “Playwright” as a test framework and JS/TS as a language.
Exercise
Imagine you need to write an automated test with the following steps: