Consolidate UpdateErrorTest

Created on 14 April 2023, over 1 year ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

In 📌 Add functional test that proves there is reasonable UX whenever a stage event subscriber has an exception Fixed , we added a new test method to UpdateErrorTest, called testExceptionFromEventSubscriber(). This is a very thorough test method that walks through the entire attended update process, asserting that exceptions thrown by subscribers to all of the stage events are caught, logged, and redirected properly.

The existing methods of UpdateErrorTest have some amount of overlap with this new test, and that means the test is longer and possibly more confusing than it needs to be, as @tedbow detailed in #3338666-47: Add functional test that proves there is reasonable UX whenever a stage event subscriber has an exception .

Proposed resolution

Let's tighten up UpdateErrorTest as a whole, and ensure that there's no duplicate coverage. That will means refactoring or removing some methods entirely, and adding more assertions to testExceptionFromEventSubscriber() -- for example, to assert that the expected buttons are present (or not present), and that we're on the pages we expect to be at certain points.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024