📅  最后修改于: 2022-03-11 14:48:32.781000             🧑  作者: Mango
//Use .toContain()
const btn = fixture.debugElement.nativeElement.querySelector('#btn-create');
expect(btn.innerHTML).toContain('Create');