I’m having trouble with a single failing DOM test for assignment 5.
The test is checking to make sure the rocket isn’t ready to launch when the cargo mass is too heavy, and like the other tests, it tests the pilot status, copilot status, fuel status, and cargo status in turn. The test calls my formSubmission function with window.document, list, “Chris”, “Bob”, 10000, 100000.
All other tests pass, but this test fails at the 10000 passed as the value for fuelLevel. I’ve checked and rechecked myself on the webpage itself, and everything works as expected, but for some reason the test receives “Fuel level too low for launch” instead of “Fuel level high enough for launch” as the textContent of fuelStatus. This happens despite passing the tests ensuring that fuelStatus updates as expected. I haven’t changed any of the spec or bundle files associated with the automated tests.
Has anyone else encountered this kind of issue?