Skip to content

Commit

Permalink
Merge branch 'duong'
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhung9630 committed Sep 20, 2024
2 parents e7f7de3 + 3be31ff commit 8a98e8c
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion EXPIRATION_TIMES_CHANGE/tc0102.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_02():
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-muti/3"
url = "https://development.arttaca.io/nft/hieukkkk/4"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down
2 changes: 1 addition & 1 deletion EXPIRATION_TIMES_CHANGE/tc0104.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_04():
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/hieukkkk/6"
url = "https://development.arttaca.io/nft/hehehehehehe/6"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down
2 changes: 1 addition & 1 deletion EXPIRATION_TIMES_CHANGE/tc0105.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_05():
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-listing/4"
url = "https://development.arttaca.io/nft/hehehehehehe/6"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down
2 changes: 1 addition & 1 deletion EXPIRATION_TIMES_CHANGE/tc0106.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_06():
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-listing/4"
url = "https://development.arttaca.io/nft/test-listing/2"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down
2 changes: 1 addition & 1 deletion EXPIRATION_TIMES_CHANGE/tc0109.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_09():
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/hehehehehehe/2"
url = "https://development.arttaca.io/nft/hehehehehehe/7"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down
2 changes: 1 addition & 1 deletion EXPIRATION_TIMES_CHANGE/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_10():
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/hehehehehehe/2"
url = "https://development.arttaca.io/nft/hehehehehehe/7"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down
6 changes: 3 additions & 3 deletions MULTI_FLOWS/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ def test_01_10():
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/19"
sb.sleep(15)
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"]')
sb.click('button:contains("Import an existing wallet")')
Expand All @@ -35,7 +35,7 @@ def test_01_10():
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(15)
sb.sleep(5)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand Down
10 changes: 5 additions & 5 deletions MULTI_FLOWS/tc0113.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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)
url = "https://development.arttaca.io/nft/test-multi2/17"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand All @@ -35,7 +35,7 @@ def test_01_13():
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(15)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -58,10 +58,10 @@ def test_01_13():
sb.switch_to_window(3)
sb.click('button:contains("Buy now")')
sb.click('button:contains("Buy with crypto")')
sb.sleep(17)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")') #Confirm
sb.sleep(30)

if __name__ == "__main__":
test_01_13("https://development.arttaca.io/nft/test-multi2/14")
test_01_13()
6 changes: 3 additions & 3 deletions MULTI_FLOWS/tc0114.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_14():
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/18"
sb.sleep(5)
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand All @@ -35,7 +35,7 @@ def test_01_14():
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(15)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -62,4 +62,4 @@ def test_01_14():
sb.sleep(30)

if __name__ == "__main__":
test_01_14("https://development.arttaca.io/nft/test-multi2/3")
test_01_14()
8 changes: 4 additions & 4 deletions MULTI_FLOWS/tc0115.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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/3"
sb.sleep(5)
url = "https://development.arttaca.io/nft/test-multi2/18"
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand All @@ -35,7 +35,7 @@ def test_01_15():
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(15)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -62,4 +62,4 @@ def test_01_15():
sb.sleep(30)

if __name__ == "__main__":
test_01_15("https://development.arttaca.io/nft/test-multi2/3")
test_01_15()
10 changes: 5 additions & 5 deletions MULTI_FLOWS/tc0116.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_16():
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/5"
sb.sleep(5)
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand All @@ -35,7 +35,7 @@ def test_01_16():
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(15)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -59,11 +59,11 @@ def test_01_16():
sb.click(".three-dots")
sb.click('button:contains("Burn")')
sb.type("#quantity", "1")
sb.click('button:contains("Confirm")')
sb.sleep(17)
sb.click('button:contains("Cancel")') #Confirm
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")') #Confirm
sb.sleep(30)

if __name__ == "__main__":
test_01_16("https://development.arttaca.io/nft/test-multi2/5")
test_01_16()
8 changes: 4 additions & 4 deletions MULTI_FLOWS/tc0117.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_17():
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.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand All @@ -35,7 +35,7 @@ def test_01_17():
sb.click('button:contains("Got it")')
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.sleep(5)
sb.sleep(15)
sb.click('button[data-testid="network-display"]')
sb.click('input[type="checkbox"]')
sb.click('p:contains("Sepolia")')
Expand All @@ -60,10 +60,10 @@ def test_01_17():
sb.click('button:contains("Burn")')
sb.type('input#quantity', '1')
sb.click('span:contains("Confirm")')
sb.sleep(17)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")') #Confirm
sb.sleep(30)

if __name__ == "__main__":
test_01_17("https://development.arttaca.io/nft/test-multi2/14")
test_01_17()

0 comments on commit 8a98e8c

Please sign in to comment.