docs(tutorial): change regexp so that assertion works

Need to remove this single space for the regex to work here.

Apparently `getText()` is trimming the text content or something, because there is no good reason
why that space should not be there.

Closes #6985
This commit is contained in:
Yiling Lu
2014-04-03 16:18:33 -07:00
committed by Caitlin Potter
parent 20b22f1f7e
commit 8b0b7ca65a

View File

@@ -172,7 +172,7 @@ ngBindTemplate} directives, which are invisible to the user while the page is lo
it('should display the current filter value within an element with id "status"',
function() {
var statusElement = element(by.id('status'));
expect(statusElement.getText()).toMatch(/Current filter: \s*$/);
expect(statusElement.getText()).toMatch(/Current filter:\s*$/);
element(by.model('query')).sendKeys('nexus');