Democrats' wary optimism about the midterms gave way to growing confidence this week.