Prettier upgrade and e2e type checks (#1522)

* upgrade prettier

* noImplicitAny rule

* fix type

* update tsconfig

* upgrade to 150 print width
This commit is contained in:
Denys Vuika
2020-07-14 10:03:23 +01:00
committed by GitHub
parent 32793ea7b0
commit ddc6f36ab4
339 changed files with 5170 additions and 8763 deletions

View File

@@ -23,14 +23,7 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
import {
Header,
DataTable,
Pagination,
Toolbar,
Breadcrumb,
Sidenav
} from '../components/components';
import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav } from '../components/components';
import { SIDEBAR_LABELS } from './../configs';
import { Page } from './page';

View File

@@ -51,10 +51,7 @@ export class LoginPage extends Page {
async loginWithAdmin() {
await this.load();
return this.loginWith(
browser.params.ADMIN_USERNAME,
browser.params.ADMIN_PASSWORD
);
return this.loginWith(browser.params.ADMIN_USERNAME, browser.params.ADMIN_PASSWORD);
}
async tryLoginWith(username: string, password?: string) {

View File

@@ -26,12 +26,7 @@
import { browser, by, ElementFinder } from 'protractor';
import { Logger } from '@alfresco/adf-testing';
import { USE_HASH_STRATEGY } from './../configs';
import {
Utils,
waitElement,
waitForPresence,
waitForVisibility
} from '../utilities/utils';
import { Utils, waitElement, waitForPresence, waitForVisibility } from '../utilities/utils';
export abstract class Page {
appRoot = 'app-root';

View File

@@ -46,7 +46,7 @@ export class SearchResultsPage extends BrowsingPage {
async getResultsChipsValues(): Promise<string[]> {
const chips = this.chipList.all(by.css('.mat-chip'));
const chipsValues: string[] = await chips.map(async elem => {
const chipsValues: string[] = await chips.map(async (elem) => {
return (await elem.getText()).replace(`\ncancel`, '');
});
return chipsValues;