Skip to content

Commit

Permalink
Renamed test case, moved api url to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin committed Jan 5, 2024
1 parent 61a3b7d commit 8da3c6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const API_URL = 'https://localhost:8080';
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();
});

0 comments on commit 8da3c6f

Please sign in to comment.