This year’s election is a test for the working-class coalition that lifted Trump into the White House and gave majorities to Republicans in the House and Senate.