From 25977f0f7c39121741f05073f93791d65c261e7a Mon Sep 17 00:00:00 2001 From: kreuzerk Date: Wed, 26 Feb 2020 11:25:23 +0100 Subject: [PATCH] chore(e2e): remove end to end test project --- angular.json | 28 ------------------- package.json | 3 +- .../ng-sortgrid-demo-e2e/protractor.conf.js | 28 ------------------- .../ng-sortgrid-demo-e2e/src/app.e2e-spec.ts | 28 ------------------- projects/ng-sortgrid-demo-e2e/src/app.po.ts | 11 -------- .../ng-sortgrid-demo-e2e/tsconfig.e2e.json | 13 --------- 6 files changed, 1 insertion(+), 110 deletions(-) delete mode 100644 projects/ng-sortgrid-demo-e2e/protractor.conf.js delete mode 100644 projects/ng-sortgrid-demo-e2e/src/app.e2e-spec.ts delete mode 100644 projects/ng-sortgrid-demo-e2e/src/app.po.ts delete mode 100644 projects/ng-sortgrid-demo-e2e/tsconfig.e2e.json diff --git a/angular.json b/angular.json index 097c2ab..7495561 100644 --- a/angular.json +++ b/angular.json @@ -149,34 +149,6 @@ } } } - }, - "ng-sortgrid-demo-e2e": { - "root": "projects/ng-sortgrid-demo-e2e/", - "projectType": "application", - "prefix": "", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "projects/ng-sortgrid-demo-e2e/protractor.conf.js", - "devServerTarget": "ng-sortgrid-demo:serve" - }, - "configurations": { - "production": { - "devServerTarget": "ng-sortgrid-demo:serve:production" - } - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": "projects/ng-sortgrid-demo-e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] - } - } - } } }, "defaultProject": "ng-sortgrid" diff --git a/package.json b/package.json index 02c22fd..204f5b2 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,7 @@ "publish": "npm run publish:lib", "publish:demo": "npx angular-cli-ghpages --dir=./dist/ng-sortgrid-demo", "publish:lib": "cd dist/ng-sortgrid && npx semantic-release", - "lint": "ng lint", - "e2e": "ng e2e" + "lint": "ng lint" }, "private": true, "dependencies": { diff --git a/projects/ng-sortgrid-demo-e2e/protractor.conf.js b/projects/ng-sortgrid-demo-e2e/protractor.conf.js deleted file mode 100644 index 86776a3..0000000 --- a/projects/ng-sortgrid-demo-e2e/protractor.conf.js +++ /dev/null @@ -1,28 +0,0 @@ -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -exports.config = { - allScriptsTimeout: 11000, - specs: [ - './src/**/*.e2e-spec.ts' - ], - capabilities: { - 'browserName': 'chrome' - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.e2e.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - } -}; \ No newline at end of file diff --git a/projects/ng-sortgrid-demo-e2e/src/app.e2e-spec.ts b/projects/ng-sortgrid-demo-e2e/src/app.e2e-spec.ts deleted file mode 100644 index 0ef93d4..0000000 --- a/projects/ng-sortgrid-demo-e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { AppPage } from './app.po'; -import { browser, logging } from 'protractor'; - -describe('workspace-project App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.getTitleText()).toEqual('Welcome to ng-sortgrid-demo!'); - }); - - afterEach(async () => { - // Assert that there are no errors emitted from the browser - const logs = await browser - .manage() - .logs() - .get(logging.Type.BROWSER); - expect(logs).not.toContain( - jasmine.objectContaining({ - level: logging.Level.SEVERE - } as logging.Entry) - ); - }); -}); diff --git a/projects/ng-sortgrid-demo-e2e/src/app.po.ts b/projects/ng-sortgrid-demo-e2e/src/app.po.ts deleted file mode 100644 index 5776aa9..0000000 --- a/projects/ng-sortgrid-demo-e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get(browser.baseUrl) as Promise; - } - - getTitleText() { - return element(by.css('app-root h1')).getText() as Promise; - } -} diff --git a/projects/ng-sortgrid-demo-e2e/tsconfig.e2e.json b/projects/ng-sortgrid-demo-e2e/tsconfig.e2e.json deleted file mode 100644 index e3a479b..0000000 --- a/projects/ng-sortgrid-demo-e2e/tsconfig.e2e.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "module": "commonjs", - "target": "es5", - "types": [ - "jasmine", - "jasminewd2", - "node" - ] - } -} \ No newline at end of file