test(upgrade): re-enable tests that have been fixed (#27305)
The fix in #27223 unblocks these tests PR Close #27305
This commit is contained in:
parent
65775a36d7
commit
140217546d
|
@ -23,7 +23,6 @@ ts_web_test_suite(
|
||||||
static_files = [
|
static_files = [
|
||||||
"//:angularjs_scripts",
|
"//:angularjs_scripts",
|
||||||
],
|
],
|
||||||
tags = [],
|
|
||||||
deps = [
|
deps = [
|
||||||
":test_lib",
|
":test_lib",
|
||||||
],
|
],
|
||||||
|
|
|
@ -178,28 +178,26 @@ withEachNg1Version(() => {
|
||||||
beforeEach(() => registry.unregisterAllApplications());
|
beforeEach(() => registry.unregisterAllApplications());
|
||||||
afterEach(() => registry.unregisterAllApplications());
|
afterEach(() => registry.unregisterAllApplications());
|
||||||
|
|
||||||
fixmeIvy('FW-561: Runtime compiler is not loaded') &&
|
it('should add testabilities hook when creating components', () => {
|
||||||
it('should add testabilities hook when creating components', () => {
|
|
||||||
|
|
||||||
let registry = TestBed.get(TestabilityRegistry);
|
let registry = TestBed.get(TestabilityRegistry);
|
||||||
adapter.createComponent([]);
|
adapter.createComponent([]);
|
||||||
expect(registry.getAllTestabilities().length).toEqual(1);
|
expect(registry.getAllTestabilities().length).toEqual(1);
|
||||||
|
|
||||||
adapter = getAdaptor(); // get a new adaptor to creat a new component
|
adapter = getAdaptor(); // get a new adaptor to creat a new component
|
||||||
adapter.createComponent([]);
|
adapter.createComponent([]);
|
||||||
expect(registry.getAllTestabilities().length).toEqual(2);
|
expect(registry.getAllTestabilities().length).toEqual(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
fixmeIvy('FW-561: Runtime compiler is not loaded') &&
|
it('should remove the testability hook when destroy a component', () => {
|
||||||
it('should remove the testability hook when destroy a component', () => {
|
const registry = TestBed.get(TestabilityRegistry);
|
||||||
const registry = TestBed.get(TestabilityRegistry);
|
expect(registry.getAllTestabilities().length).toEqual(0);
|
||||||
expect(registry.getAllTestabilities().length).toEqual(0);
|
adapter.createComponent([]);
|
||||||
adapter.createComponent([]);
|
expect(registry.getAllTestabilities().length).toEqual(1);
|
||||||
expect(registry.getAllTestabilities().length).toEqual(1);
|
adapter.registerCleanup();
|
||||||
adapter.registerCleanup();
|
element.remove !();
|
||||||
element.remove !();
|
expect(registry.getAllTestabilities().length).toEqual(0);
|
||||||
expect(registry.getAllTestabilities().length).toEqual(0);
|
});
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue