-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guards for testing on dev environment and allowing logins with re…
…gular google accounts.
- Loading branch information
Showing
6 changed files
with
41 additions
and
10 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,12 @@ | ||
import { NextResponse } from "next/server"; | ||
|
||
export async function GET() { | ||
try { | ||
if(process.env.NEXT_PUBLIC_BRANCH_NAME === "development") { | ||
return NextResponse.json({ isOnTestEnv: true }); | ||
} | ||
} catch (error) { | ||
} | ||
|
||
return NextResponse.json({ isOnTestEnv: false }); | ||
} |
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
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
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
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
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,9 +1,13 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('search for text Media Commons', async ({ page }) => { | ||
test('Search for text Media Commons in the title', async ({ page }) => { | ||
await page.goto('http://localhost:3000'); | ||
|
||
//make sure there is an h4 element with the text "Media Commons" | ||
|
||
await expect(page).toHaveTitle('Media commons booking app'); | ||
}); | ||
}); | ||
|
||
test('Go through the booking process', async ({ page }) => { | ||
await page.goto('http://localhost:3000'); | ||
}); |