20 lines
444 B
TypeScript
20 lines
444 B
TypeScript
import { by } from 'protractor';
|
|
import { locate } from './util';
|
|
|
|
export function getPage() {
|
|
return by.css('app-hero-list-auto-page');
|
|
}
|
|
|
|
export function getComponent() {
|
|
return by.css('app-hero-list-auto');
|
|
}
|
|
|
|
export function getComponentContainer() {
|
|
const findContainer = () => by.css('ul');
|
|
return locate(getComponent(), findContainer());
|
|
}
|
|
|
|
export function getHeroesList() {
|
|
return getComponentContainer().all(by.css('li'));
|
|
}
|