Skip to content

Commit

Permalink
Merge pull request #74 from CSSE6400/86
Browse files Browse the repository at this point in the history
hehe
  • Loading branch information
86LAK authored May 14, 2024
2 parents 96feb76 + d5381f9 commit e25a203
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions integration_tests/test_home_page.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import re
from playwright.sync_api import Page, expect
import unittest
import requests
from .base import BaseCase
# 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/")
# 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"))
# # 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/")
# 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()
# # 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()
# # 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 e25a203

Please sign in to comment.