How would you test a legacy AngularJS application with a maintained end-to-end tool?
Instruction: Explain the AngularJS and Protractor support boundaries. Write a Playwright test for adding a task, state its fixture assumptions, and describe asynchronous waiting, failure cases, and test isolation.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
AngularJS 1.x is out of upstream support, and Protractor is archived. For a legacy application, use a maintained browser tool such as Playwright and migrate tests around observable user behavior. These tests also protect behavior while the application itself is migrated.
For a local app at http://127.0.0.1:8000, assume /todos starts with no tasks, has an input labeled “Task,” an “Add task” button, and a list whose accessible name is “Tasks.”...