Skip to content

Commit 4b4db99

Browse files
committed
fix(e2e:main): fix yeoman.png regex
allow for revved image name, fixes e2e tests on a prod environment
1 parent a75b1d4 commit 4b4db99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: templates/app/e2e/main/main.spec(jasmine).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Main View', function() {
1212

1313
it('should include jumbotron with correct data', function() {
1414
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
15-
expect(page.imgEl.getAttribute('src')).toMatch(/yeoman.png$/);
15+
expect(page.imgEl.getAttribute('src')).toMatch(/yeoman(\.[a-zA-Z0-9]*)?\.png$/);
1616
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
1717
});
1818
});

Diff for: templates/app/e2e/main/main.spec(mocha).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Main View', function() {
1313

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

0 commit comments

Comments
 (0)