Skip to content

Commit e2960a6

Browse files
committed
remove extra error and add non-null assertion operator
1 parent eb07873 commit e2960a6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

e2e/{{app_name}}/tests/index.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ import AxeBuilder from '@axe-core/playwright';
55
test.describe('Generic Webpage Tests', () => {
66
test('should load the webpage successfully', async ({ page }) => {
77
const response = await page.goto('/');
8-
if (!response) {
9-
throw new Error('Failed to navigate');
10-
}
11-
128
const title = await page.title();
13-
await expect(response.status()).toBe(200);
9+
expect(response!.status()).toBe(200);
1410
});
1511

1612
test('should take a screenshot of the webpage', async ({ page }) => {

0 commit comments

Comments
 (0)