Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Dec 3, 2023
1 parent f0f1af3 commit 27c23d5
Show file tree
Hide file tree
Showing 22 changed files with 5,969 additions and 4,066 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NgDemo

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.6.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.5.

## Development server

Expand Down
18 changes: 7 additions & 11 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ng-demo",
"index": "src/index.html",
"main": "src/main.ts",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
Expand Down Expand Up @@ -47,12 +47,9 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand All @@ -61,18 +58,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "ng-demo:build:production"
"buildTarget": "ng-demo:build:production"
},
"development": {
"browserTarget": "ng-demo:build:development"
"buildTarget": "ng-demo:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ng-demo:build"
"buildTarget": "ng-demo:build"
}
},
"test": {
Expand Down Expand Up @@ -146,7 +143,6 @@
"schematicCollections": [
"@cypress/schematic",
"@schematics/angular"
],
"analytics": false
]
}
}
4 changes: 0 additions & 4 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import { defineConfig } from 'cypress'

export default defineConfig({

e2e: {
'baseUrl': 'http://localhost:4200'
},

video: false,

component: {
devServer: {
framework: 'angular',
bundler: 'webpack',
},
specPattern: '**/*.cy.ts'
}

})
2 changes: 1 addition & 1 deletion cypress/e2e/edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Edit', () => {
cy.get('#name').type(' Rocks!');
cy.get('#save').click();
// verify one element matched this change
const list = cy.get('app-search mat-list mat-list-item');
const list = cy.get('app-search table tbody tr');
list.should('have.length', 1);
});
});
2 changes: 1 addition & 1 deletion cypress/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Search', () => {
it('should allow searching', () => {
cy.get('input').type('A');
cy.get('button').click();
const list = cy.get('app-search mat-list mat-list-item');
const list = cy.get('app-search table tbody tr');
list.should('have.length', 3);
});
});
Loading

0 comments on commit 27c23d5

Please sign in to comment.