Unable to get the text of an element usng selenium web driver in Jasmine test cases
Where are you passing the element here? you have to resolve the getText promise. Try this:
this.driver.findElement(selenium.By.id('floor-name')).getText().then(function(text){ expect(text).toMatch("Floor 1"); });