Per the
Nightwatch API pretty much every assertion and command takes a CSS selector as the first argument. If you want to perform a particular Assertion or Command on an element by ID just use the CSS selector for the ID (i.e. "#element-id"), otherwise by class CSS selector (i.e. ".class-name").
So for short example:
browser.url("application url")
.waitForElementVisible("#element-id", 5000)
.assert.containsText(".class-name", "Expected Text")
.end();
Hope that helps.