Skip to content

Commit

Permalink
super cool front end testing which defs is testing our front end
Browse files Browse the repository at this point in the history
  • Loading branch information
86LAK committed May 14, 2024
1 parent 0768456 commit 67b6e82
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions integration_tests/test_home_page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import re
from playwright.sync_api import Page, expect
import unittest
import requests
from .base import BaseCase

class TestFrontEnd(BaseCase):
def test_has_title(page: Page):
page.goto("https://playwright.dev/")

# Expect a title "to contain" a substring.
expect(page).to_have_title(re.compile("Playwright"))

def test_get_started_link(page: Page):
page.goto("https://playwright.dev/")

# Click the get started link.
page.get_by_role("link", name="Get started").click()

# Expects page to have a heading with the name of Installation.
expect(page.get_by_role("heading", name="Installation")).to_be_visible()

0 comments on commit 67b6e82

Please sign in to comment.