"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "aio/tests/e2e/src/api.po.ts" between
angular-11.0.1.tar.gz and angular-11.0.2.tar.gz

About: Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript.

api.po.ts  (angular-11.0.1):api.po.ts  (angular-11.0.2)
import { element, by } from 'protractor'; import { element, by } from 'protractor';
import { SitePage } from './app.po'; import { SitePage } from './app.po';
export class ApiPage extends SitePage { export class ApiPage extends SitePage {
constructor(url: string) {
super();
this.navigateTo(url);
}
getDescendants(docType: string, onlyDirect = false) { getDescendants(docType: string, onlyDirect = false) {
// This selector is horrible because we have potentially recursive HTML list s // This selector is horrible because we have potentially recursive HTML list s
// //
// ul // ul
// li // li
// code // code
// ul // ul
// li // li
// code // code
// ul // ul
// li // li
// code // code
// li // li
// code // code
// //
// and we want to be able to pull out the code elements from only the first level // and we want to be able to pull out the code elements from only the first level
// if `onlyDirect` is set to `true`. // if `onlyDirect` is set to `true`.
const selector = `.descendants.${docType} ${onlyDirect ? '>' : ''} ul > li > code`; const selector = `.descendants.${docType} ${onlyDirect ? '>' : ''} ul > li > code`;
return element.all(by.css(selector)).map<string>(item => item && item.getTex t()); return element.all(by.css(selector)).map<string>(item => item?.getText());
} }
getOverview(docType: string) { getOverview(docType: string) {
return element(by.css(`.${docType}-overview`)); return element(by.css(`.${docType}-overview`));
} }
getSection(cls: string) { getSection(cls: string) {
return element(by.css(`section.${cls}`)); return element(by.css(`section.${cls}`));
} }
 End of changes. 2 change blocks. 
6 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)