Created
February 17, 2023 19:58
-
-
Save maaretp/73dcbed99f23adcdb75c7375ae18ebf1 to your computer and use it in GitHub Desktop.
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
from playwright.sync_api import expect | |
def test_add_todo(page): | |
page.goto("https://todomvc.com/examples/vanillajs/") | |
input_field = page.get_by_placeholder("What needs to be done?") | |
input_field.fill("Learning Playwright") | |
input_field.press("Enter") | |
expect(page.locator(".todo-list li label")).to_have_text("Learning Playwright") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment