Skip to content

Commit

Permalink
Fix failing playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markmetcalfe committed Jan 11, 2024
1 parent 0c2d338 commit 40331a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/ContactPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/>
<LinkButton
text="Instagram"
href="https://instagram.com/markus_ratboy"
href="https://instagram.com/markus_vizshun"
icon="fab fa-instagram"
color="#e1306c"
external
Expand Down
5 changes: 3 additions & 2 deletions tests/e2e/ContactPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test.describe('ContactPage', () => {
link.click(),
])

expect(page1.url()).toContain('linkedin.com')
expect(page1.url()).toContain('linkedin.com/in/mark-metcalfe')
await expect(page1.locator('body')).toContainText('LinkedIn')
})

Expand All @@ -48,6 +48,7 @@ test.describe('ContactPage', () => {
])

expect(page1.url()).toContain('instagram.com')
await expect(page1.locator('body')).toContainText('Instagram')
expect(page1.url()).toContain('markus_vizshun')
await expect(page1).toHaveTitle(/Instagram/)
})
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion tests/e2e/PortfolioPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test.describe('PortfolioPage', () => {
])

expect(page1.url()).toContain('instagram.com')
expect(page1.url()).toContain('markus_vizshun')
await expect(page1).toHaveTitle(/Instagram/)
})

Expand All @@ -38,7 +39,7 @@ test.describe('PortfolioPage', () => {
link.click(),
])

expect(page1.url()).toContain('github.com')
expect(page1.url()).toContain('github.com/markmetcalfe')
await expect(page1.locator('body')).toContainText('GitHub')
})

Expand Down

0 comments on commit 40331a5

Please sign in to comment.