Skip to content

Commit

Permalink
fix sleep + url
Browse files Browse the repository at this point in the history
  • Loading branch information
LynkMAD committed Sep 20, 2024
1 parent cea8d0d commit 3ee75bd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions MULTI_FLOWS/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_10():
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(15)
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()
10 changes: 5 additions & 5 deletions MULTI_FLOWS/tc0114.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import time
import os

def test_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/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_14(url):
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(url):
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 3ee75bd

Please sign in to comment.