-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed test case, moved api url to constant
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const API_URL = 'https://localhost:8080'; |
5 changes: 3 additions & 2 deletions
5
tests/scenarios/main.spec.ts → tests/scenarios/appIntegrity.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { test, expect } from '@playwright/test'; | ||
import { API_URL } from '../config'; | ||
|
||
test('should display sign in page', async ({ page }) => { | ||
await page.goto('https://localhost:10000'); | ||
test('I can see sign in page', async ({ page }) => { | ||
await page.goto(API_URL); | ||
|
||
await expect(page.getByRole('button', { name: /sign in with google/i })).toBeVisible(); | ||
}); |