Skip to content

Commit

Permalink
CLI ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 16, 2023
1 parent a3a26b8 commit fba7d57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ To run the automated tests run:
1. ```npm run build```
2. copy the web-ext artifact into the normal folder and rename it to [email protected]
3. ```npm run test```

Cli ARGS:
- none : all tests
- 'n': Netflix tests
- 'p': Prime Video tests
- 'd': Disney tests

```python test.py n p d```
### setup

- insert your own firefox profile name to be logged into every platform in the ``test.js`` file.
Expand Down
10 changes: 4 additions & 6 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
import time
import sys

ffOptions = Options()

Expand Down Expand Up @@ -311,21 +312,18 @@ def Disney_Credits():
["Profile", "❌", "➖", "➖"],
]

print("What do you wanna Test? Netflix, Disney, Prime, all(n,p,d,'')")
x = input()

if x == "p" or x == "":
if len(sys.argv) == 0 or "p" in sys.argv:
print("Amazon Prime:")
Amazon_Ad()
Amazon_Prime()
Amazon_PaidContent()

if x == "n" or x == "":
if len(sys.argv) == 0 or "n" in sys.argv:
print("Netflix:")
Netflix_Profile()
Netflix_intro()

if x == "d" or x == "":
if len(sys.argv) == 0 or "d" in sys.argv:
print("Disney:")
Disney_Intro()
Disney_Credits()
Expand Down

0 comments on commit fba7d57

Please sign in to comment.