mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
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:
@@ -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';
|
||||
|
||||
|
@@ -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) {
|
||||
|
@@ -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';
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user