Skip to content

Commit

Permalink
Merge branch 'hoang'
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhung9630 committed Sep 20, 2024
2 parents 5fbc2a7 + fcf8eaa commit 5c18641
Show file tree
Hide file tree
Showing 21 changed files with 114 additions and 103 deletions.
19 changes: 10 additions & 9 deletions EXPIRATION_TIMES_CHANGE/tc0111.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_11(url):
def test_01_11():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -34,7 +35,7 @@ def tc_01_11(url):
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(8)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -47,21 +48,21 @@ def tc_01_11(url):
sb.switch_to_window(4)
sb.click('button:contains("Next")')
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.sleep(6)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(3)
sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr')
sb.click('button:contains("Burn")')
sb.click('span:contains("Confirm")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(30)
sb.click('button:contains("Reject")') #Confirm -> Reject
sb.sleep(15)

if __name__ == "__main__":
tc_01_11("https://development.arttaca.io/nft/hehehehehehe/4")
test_01_11()
19 changes: 10 additions & 9 deletions EXPIRATION_TIMES_CHANGE/tc0112.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_12(url):
def test_01_12():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -34,7 +35,7 @@ def tc_01_12(url):
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(8)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -47,23 +48,23 @@ def tc_01_12(url):
sb.switch_to_window(4)
sb.click('button:contains("Next")')
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(3)
sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr')
sb.click('button:contains("Transfer")')
sb.type('input[placeholder="Search by user name or address"]', "Hoang")
sb.type('input[placeholder="Search by username or address"]', "Hoang")
sb.click('span:contains("@eternertyy")')
sb.click('span:contains("Confirm")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(60)
sb.click('button:contains("Reject")') #Confirm -> Reject
sb.sleep(15)

if __name__ == "__main__":
tc_01_12("https://development.arttaca.io/nft/hehehehehehe/2")
test_01_12()
11 changes: 6 additions & 5 deletions EXPIRATION_TIMES_CHANGE/tc0113.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_13(url):
def test_01_13():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -47,10 +48,10 @@ def tc_01_13(url):
sb.switch_to_window(4)
sb.click('button:contains("Next")')
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
Expand All @@ -59,7 +60,7 @@ def tc_01_13(url):
sb.click('button:contains("Transfer")')
sb.sleep(2)
sb.click('button:contains("Cancel")')
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_13("https://development.arttaca.io/nft/test-multi2/3")
test_01_13()
13 changes: 7 additions & 6 deletions EXPIRATION_TIMES_CHANGE/tc0114.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_14(url):
def test_01_14():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -50,21 +51,21 @@ def tc_01_14(url):
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(3)
sb.click(".three-dots")
sb.click('button:contains("Transfer")')
sb.type('input[placeholder="Search by user name or address"]', "Hoang")
sb.type('input[placeholder="Search by username or address"]', "Hoang")
sb.click('span:contains("@eternertyy")')
sb.type("#quantity", "1")
sb.click('button:contains("Confirm")')
sb.sleep(5)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_14("https://development.arttaca.io/nft/test-multi2/3")
test_01_14()
9 changes: 5 additions & 4 deletions EXPIRATION_TIMES_CHANGE/tc0115.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_15(url):
def test_01_15():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -50,7 +51,7 @@ def tc_01_15(url):
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
Expand All @@ -59,7 +60,7 @@ def tc_01_15(url):
sb.click('button:contains("Burn")')
sb.sleep(2)
sb.click('button:contains("Cancel")')
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_15("https://development.arttaca.io/nft/test-multi2/3")
test_01_15()
13 changes: 6 additions & 7 deletions EXPIRATION_TIMES_CHANGE/tc0116.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_16(url):
def test_01_16():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -50,19 +51,17 @@ def tc_01_16(url):
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(3)
sb.click(".three-dots")
sb.click('button:contains("List Now")')
sb.type("#reservePrice", "0")
sb.type("#quantity", 1)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(4)
sb.click('button:contains("Cancel")')
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_16("https://development.arttaca.io/nft/test-multi2/3")
test_01_16()
13 changes: 7 additions & 6 deletions EXPIRATION_TIMES_CHANGE/tc0117.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_17(url):
def test_01_17():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -50,23 +51,23 @@ def tc_01_17(url):
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button:contains("Create")')
sb.click('span:contains("Mint a NFT to an Existing Collection")')
sb.click('span:contains("Add an Artwork to an Existing Series")')
sb.click('span:contains("Select")')
sb.type('input#name', "autotest011aaa")
sb.type('textarea#description', "autotestautotestautotestautotest")
img_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'img', 'Ed-Sheeran-posing.jpg'))
sb.choose_file('input[type="file"]', img_path)
sb.click('button:contains("Mint later")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Cancel")')
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_17("https://development.arttaca.io/nft/test-multi2/3")
test_01_17()
13 changes: 7 additions & 6 deletions EXPIRATION_TIMES_CHANGE/tc0118.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_18(url):
def test_01_18():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -50,23 +51,23 @@ def tc_01_18(url):
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button:contains("Create")')
sb.click('span:contains("Mint a NFT to an Existing Collection")')
sb.click('span:contains("Add an Artwork to an Existing Series")')
sb.click('span:contains("Select")')
sb.type('input#name', "autotest011aaa")
sb.type('textarea#description', "autotestautotestautotestautotest")
img_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'img', 'Ed-Sheeran-posing.jpg'))
sb.choose_file('input[type="file"]', img_path)
sb.click('button:contains("Mint now")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_18("https://development.arttaca.io/nft/test-multi2/3")
test_01_18()
9 changes: 5 additions & 4 deletions EXPIRATION_TIMES_CHANGE/tc0119.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_19(url):
def test_01_19():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/3"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -50,12 +51,12 @@ def tc_01_19(url):
sb.sleep(7)
sb.switch_to_window(3)
sb.click('button.css-hnz0pg')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(7)
sb.switch_to_window(3)
sb.sleep(30)
sb.sleep(15)

if __name__ == "__main__":
tc_01_19("https://development.arttaca.io/nft/test-multi2/3")
test_01_19()
Loading

0 comments on commit 5c18641

Please sign in to comment.