Skip to content

Commit

Permalink
Configured local testing, more TODO on the way.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-mae committed Jun 7, 2024
1 parent 6d3d8fb commit 02d0992
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
.DS_Store
playwright-tests/__pycache__
playwright-tests/.pytest_cache
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
</header>
<div class="about-me">
<h2>Hello, my name is Josh, and I am currently studying CS at MSU.</h2>
<p>Currently, I am interested in native mobile development and have built iOS and Android apps.
Although, I am interested in learning about new tech stacks and working on a variety of projects.
<p>Currently, I am exploring a variety of tech specializations such as native mobile development,
web development, and game development.
I am always interested in learning about new tech stacks and working on a variety of projects.
If you are in need of a software developer, contact me!</p>
</div>
<!-- TODO: Accessibility -->
Expand Down
18 changes: 18 additions & 0 deletions playwright-tests/test_first_load.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from playwright.sync_api import sync_playwright


def test_first_load():
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto('http://joshuamae.com')
assert page.title() == 'Joshua Mae'
browser.close()


def main():
test_first_load()


if __name__ == "__main__":
main()
12 changes: 0 additions & 12 deletions playwright-tests/test_firstload.py

This file was deleted.

21 changes: 21 additions & 0 deletions playwright-tests/test_header_links.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from playwright.sync_api import sync_playwright, expect


def test_header_links():

with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
page = browser.new_page()
page.goto('http://joshuamae.com')
page.get_by_role("link", name="Github").click()
page.wait_for_load_state()
expect(page).to_have_url("https://github.com/joshua-mae")
browser.close()


def main():
test_header_links()


if __name__ == "__main__":
main()

0 comments on commit 02d0992

Please sign in to comment.