Skip to content

Commit 675fd38

Browse files
Added initial project setup
1 parent 4484ad3 commit 675fd38

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,21 @@ The Playwright Workshop for TAU: The Homecoming
2020
1. Testing different browsers
2121
2. Capturing screenshots and videos
2222
3. Running tests in parallel
23+
24+
25+
## Part 1: Getting started
26+
27+
```bash
28+
$ mkdir tau-playwright-workshop
29+
$ cd tau-playwright-workshop
30+
$ python3 -m venv venv
31+
$ source venv/bin/activate
32+
$ pip3 install playwright
33+
$ pip3 install pytest
34+
$ pip3 freeze
35+
$ playwright install
36+
```
37+
38+
* Explain virtual environments
39+
40+

requirements.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
attrs==21.2.0
2+
greenlet==1.1.2
3+
iniconfig==1.1.1
4+
packaging==21.3
5+
playwright==1.17.0
6+
pluggy==1.0.0
7+
py==1.11.0
8+
pyee==8.2.2
9+
pyparsing==3.0.6
10+
pytest==6.2.5
11+
toml==0.10.2
12+
websockets==10.1

tests/test_search.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""
2+
These tests cover DuckDuckGo searches.
3+
"""
4+
5+
6+
def test_basic_duckduckgo_search():
7+
# Given the DuckDuckGo home page is displayed
8+
# When the user searches for a phrase
9+
# Then the search result query is the phrase
10+
# And the search result links pertain to the phrase
11+
# And the search result title contains the phrase
12+
pass

0 commit comments

Comments
 (0)