Skip to content

Commit

Permalink
fix(e2e:main): fix yeoman.png regex
Browse files Browse the repository at this point in the history
allow for revved image name, fixes e2e tests on a prod environment
  • Loading branch information
Awk34 committed May 2, 2016
1 parent a75b1d4 commit 4b4db99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/app/e2e/main/main.spec(jasmine).js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Main View', function() {

it('should include jumbotron with correct data', function() {
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
expect(page.imgEl.getAttribute('src')).toMatch(/yeoman.png$/);
expect(page.imgEl.getAttribute('src')).toMatch(/yeoman(\.[a-zA-Z0-9]*)?\.png$/);
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
});
});
2 changes: 1 addition & 1 deletion templates/app/e2e/main/main.spec(mocha).js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Main View', function() {

it('should include jumbotron with correct data', function() {
<%= expect() %>page.h1El.getText()<%= to() %>.eventually.equal('\'Allo, \'Allo!');
<%= expect() %>page.imgEl.getAttribute('src')<%= to() %>.eventually.match(/yeoman.png$/);
<%= expect() %>page.imgEl.getAttribute('src')<%= to() %>.eventually.match(/yeoman(\.[a-zA-Z0-9]*)?\.png$/);
<%= expect() %>page.imgEl.getAttribute('alt')<%= to() %>.eventually.equal('I\'m Yeoman');
});
});

0 comments on commit 4b4db99

Please sign in to comment.