diff options
| author | Kamen Mladenov <kamen.d.mladenov@protonmail.com> | 2021-04-09 19:51:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-09 19:51:35 +0300 |
| commit | 233f38915ba0079079233eff55434ef349c05c45 (patch) | |
| tree | 6c5f69017865bcab87355e910c87339453da1406 /src/DevHive.Angular/e2e | |
| parent | f4a70c6430db923af9fa9958a11c2d6612cb52cc (diff) | |
| parent | a992357efcf1bc1ece81b95ecee5e05a0b73bfdc (diff) | |
| download | DevHive-0.2.tar DevHive-0.2.tar.gz DevHive-0.2.zip | |
Merge pull request #28 from Team-Kaleidoscope/devHEADv0.2mainheroku/main
Second stage: Complete
Diffstat (limited to 'src/DevHive.Angular/e2e')
| -rw-r--r-- | src/DevHive.Angular/e2e/protractor.conf.js | 37 | ||||
| -rw-r--r-- | src/DevHive.Angular/e2e/src/app.e2e-spec.ts | 23 | ||||
| -rw-r--r-- | src/DevHive.Angular/e2e/src/app.po.ts | 11 | ||||
| -rw-r--r-- | src/DevHive.Angular/e2e/tsconfig.json | 13 |
4 files changed, 0 insertions, 84 deletions
diff --git a/src/DevHive.Angular/e2e/protractor.conf.js b/src/DevHive.Angular/e2e/protractor.conf.js deleted file mode 100644 index 361e7f0..0000000 --- a/src/DevHive.Angular/e2e/protractor.conf.js +++ /dev/null @@ -1,37 +0,0 @@ -// @ts-check -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); - -/** - * @type { import("protractor").Config } - */ -exports.config = { - allScriptsTimeout: 11000, - specs: [ - './src/**/*.e2e-spec.ts' - ], - capabilities: { - browserName: 'chrome' - }, - directConnect: true, - SELENIUM_PROMISE_MANAGER: false, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ - spec: { - displayStacktrace: StacktraceOption.PRETTY - } - })); - } -};
\ No newline at end of file diff --git a/src/DevHive.Angular/e2e/src/app.e2e-spec.ts b/src/DevHive.Angular/e2e/src/app.e2e-spec.ts deleted file mode 100644 index 359bbf9..0000000 --- a/src/DevHive.Angular/e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,23 +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', async () => { - await page.navigateTo(); - expect(await page.getTitleText()).toEqual('Angular app is running!'); - }); - - 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/src/DevHive.Angular/e2e/src/app.po.ts b/src/DevHive.Angular/e2e/src/app.po.ts deleted file mode 100644 index c9c85ab..0000000 --- a/src/DevHive.Angular/e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - async navigateTo(): Promise<unknown> { - return browser.get(browser.baseUrl); - } - - async getTitleText(): Promise<string> { - return element(by.css('app-root .content span')).getText(); - } -} diff --git a/src/DevHive.Angular/e2e/tsconfig.json b/src/DevHive.Angular/e2e/tsconfig.json deleted file mode 100644 index 0782539..0000000 --- a/src/DevHive.Angular/e2e/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/e2e", - "module": "commonjs", - "target": "es2018", - "types": [ - "jasmine", - "node" - ] - } -} |
