build(bazel): update bazel integration test to test secondary angular imports such as @angular/common/http (#24170)
PR Close #24170
This commit is contained in:

committed by
Victor Berchet

parent
6948ef125c
commit
5cbcb5680b
7
integration/bazel/test/e2e/BUILD.bazel
Normal file
7
integration/bazel/test/e2e/BUILD.bazel
Normal file
@ -0,0 +1,7 @@
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||
|
||||
ts_library(
|
||||
name = "e2e",
|
||||
testonly = 1,
|
||||
srcs = glob(["*.ts"]),
|
||||
)
|
12
integration/bazel/test/e2e/app.spec.ts
Normal file
12
integration/bazel/test/e2e/app.spec.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {browser, by, element, ExpectedConditions} from 'protractor';
|
||||
|
||||
describe('angular example application', () => {
|
||||
it('should display: Hello World!', (done) => {
|
||||
browser.get('');
|
||||
const div = element(by.css('div'));
|
||||
div.getText().then(t => expect(t).toEqual(`Hello world!`));
|
||||
element(by.css('input')).sendKeys('!');
|
||||
div.getText().then(t => expect(t).toEqual(`Hello world!!`));
|
||||
done();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user