mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 17:01:19 +08:00
Included: - A sample test fixture - A sample test - Server middleware to serve the E2E harness - Convenient test helpers to simplify loading the right fixture Closes #9557 Closes #9527
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
// Sample E2E test:
|
|
//
|
|
describe('Sample', function() {
|
|
beforeEach(function() {
|
|
loadFixture("sample").andWaitForAngular();
|
|
});
|
|
|
|
it('should have the interpolated text', function() {
|
|
expect(element(by.binding('text')).getText())
|
|
.toBe('Hello, world!');
|
|
});
|
|
});
|