Skip to content

Commit

Permalink
[feat #457]: playwright, create playwright builder for angular, run b…
Browse files Browse the repository at this point in the history
…asic tests
  • Loading branch information
r-hannuschka committed Oct 28, 2021
1 parent ac89ef9 commit 55c579f
Show file tree
Hide file tree
Showing 29 changed files with 108 additions and 17,169 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/src/documentation
/src/server/upload.log
/src/__ivy_ngcc__
dist
*.tar.gz

# Only exists if Bazel was run
/bazel-out
Expand Down
5 changes: 1 addition & 4 deletions src/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"project": "src/tsconfig.json",
"createDefaultProgram": true
},
"extends": [
Expand Down
3 changes: 1 addition & 2 deletions src/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"builder": "@tsmonkeypatch/ngx-builders:playwright",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ngx-fileupload-example:serve"
},
"configurations": {
Expand Down
11 changes: 0 additions & 11 deletions src/e2e/github-actions-chrome.conf.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/e2e/github-actions-firefox.conf.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/e2e/integration/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { test, expect } from '@playwright/test'

test('basic test', async({page}) => {
await page.goto('https://playwright.dev')
const title = page.locator('.navbar__inner .navbar__title')
await expect(title).toHaveText('Playwright')
})
22 changes: 22 additions & 0 deletions src/e2e/playwright.conf.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
projects: [
{
name: 'Chrome Stable',
use: {
browserName: 'chromium',
// Test against Chrome Stable channel.
channel: 'chrome',
},
},
{
name: 'Desktop Firefox',
use: {
browserName: 'firefox',
viewport: { width: 800, height: 600 },
}
},
],
};
export default config;
7 changes: 0 additions & 7 deletions src/e2e/protractor-firefox.conf.js

This file was deleted.

42 changes: 0 additions & 42 deletions src/e2e/protractor.conf.js

This file was deleted.

1 change: 0 additions & 1 deletion src/e2e/src/data/upload-file.txt

This file was deleted.

Binary file removed src/e2e/src/data/upload-file.zip
Binary file not shown.
Binary file removed src/e2e/src/data/upload-file2.zip
Binary file not shown.
233 changes: 0 additions & 233 deletions src/e2e/src/integration/dashboard.spec.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/e2e/src/integration/file-browser.spec.ts

This file was deleted.

0 comments on commit 55c579f

Please sign in to comment.