Skip to content

Commit

Permalink
Merge pull request #9 from efuller/fix/e2e-tests
Browse files Browse the repository at this point in the history
Fix E2E Test Urls
  • Loading branch information
efuller authored Feb 14, 2024
2 parents d822689 + 6cf9982 commit 7d0a666
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/shared/webApp/webApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export class WebApp {
}

static async create(driver: PuppeteerPageDriver, baseUrl = 'http://localhost:5173/') {
if (process.env.NODE_ENV !== 'test') {
baseUrl = 'https://explore-frontend-architecture.onrender.com/';
}

const app = new WebApp(driver, baseUrl);
app.pageDriver.page.setDefaultTimeout(10000);
await app.generatePages();
Expand Down

0 comments on commit 7d0a666

Please sign in to comment.