Skip to content

Commit

Permalink
feat(update): update to Angular (and related) 7.0.0 BREAKING CHANGE
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Oct 18, 2018
1 parent 1027cf1 commit 36ee08f
Show file tree
Hide file tree
Showing 45 changed files with 1,603 additions and 3,104 deletions.
4 changes: 1 addition & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"jsxBracketSameLine": false,
"parser": "babylon",
"semi": true,
"semi": true
}
3 changes: 1 addition & 2 deletions cypress/integration/about.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ describe('About', () => {
});

it('first action button should lead to "Features" route', () => {
cy
.get('.actions a')
cy.get('.actions a')
.first()
.click();
cy.url().should('include', 'features');
Expand Down
7 changes: 4 additions & 3 deletions cypress/integration/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ describe('App', () => {
});

it('should display current year in the footer', () => {
cy
.get('[data-testid=footer-year]')
.should('contain', new Date().getFullYear().toString());
cy.get('[data-testid=footer-year]').should(
'contain',
new Date().getFullYear().toString()
);
});

it('should have "About", "Features", "Examples" menus', () => {
Expand Down
20 changes: 10 additions & 10 deletions cypress/integration/crud.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ describe('CRUD Actions', () => {
});

it('should not display a book deleted', () => {
cy
.get('[data-testid="crud-item"]')
cy.get('[data-testid="crud-item"]')
.first()
.click();
cy.get('[data-testid="delete-crud"]').click();
Expand All @@ -25,8 +24,7 @@ describe('CRUD Actions', () => {
});

it('should update a book title', () => {
cy
.get('[data-testid="crud-item"]')
cy.get('[data-testid="crud-item"]')
.first()
.click();
cy.get('[data-testid="edit-crud"]').click();
Expand All @@ -43,12 +41,14 @@ describe('CRUD Actions', () => {

it('should display errors', () => {
cy.get('[placeholder="Title"]').type('{enter}');
cy
.get('[data-testid="error-title-crud"]')
.should('contain', 'Title is required');
cy
.get('[data-testid="error-author-crud"]')
.should('contain', 'Author is required');
cy.get('[data-testid="error-title-crud"]').should(
'contain',
'Title is required'
);
cy.get('[data-testid="error-author-crud"]').should(
'contain',
'Author is required'
);
});
});
});
Loading

0 comments on commit 36ee08f

Please sign in to comment.