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 d5ce96d + cea8d0d commit 595d985
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions MULTI_FLOWS/tc0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_01_01():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
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 @@ -34,7 +34,7 @@ def test_01_01():
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 Down
4 changes: 2 additions & 2 deletions MULTI_FLOWS/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:
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 Down Expand Up @@ -62,7 +62,7 @@ def test_01_04():
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('span:contains("Mint now")')
sb.sleep(17)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(30)
Expand Down
6 changes: 3 additions & 3 deletions MULTI_FLOWS/tc0105.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_05():
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_05():
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,7 +60,7 @@ def test_01_05():
sb.type('input#reservePrice', "0.0001")
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("Cancel")') #Confirm
sb.sleep(30)
Expand Down
2 changes: 1 addition & 1 deletion MULTI_FLOWS/tc0106.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ def test_01_06():
sb.sleep(30)

if __name__ == "__main__":
test_01_06("https://development.arttaca.io/nft/test-multi2/3")
test_01_06()
8 changes: 4 additions & 4 deletions MULTI_FLOWS/tc0107.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_07():
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.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_07():
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 @@ -61,10 +61,10 @@ def test_01_07():
sb.type('input#quantity', "3")
sb.type('input#quantity', "2")
sb.click('span:contains("Confirm")')
sb.sleep(17)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Cancel")')
sb.sleep(30)

if __name__ == "__main__":
test_01_07("https://development.arttaca.io/nft/test-multi2/3")
test_01_07()
6 changes: 3 additions & 3 deletions MULTI_FLOWS/tc0108.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_08():
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.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_08():
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,7 +60,7 @@ def test_01_08():
sb.type("#reservePrice", "0.0001")
sb.type("#quantity", 1)
sb.click('button:contains("Confirm")')
sb.sleep(17)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Cancel")') #Confirm
sb.sleep(30)
Expand Down
4 changes: 2 additions & 2 deletions MULTI_FLOWS/tc0109.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_09():
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.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_09():
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 Down
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(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_10():
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 Down
6 changes: 3 additions & 3 deletions MULTI_FLOWS/tc0111.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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/3"
sb.sleep(5)
url = "https://development.arttaca.io/nft/uyenoianhyeuem/1"
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_11():
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 Down
12 changes: 6 additions & 6 deletions MULTI_FLOWS/tc0112.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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)
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_12():
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,9 +60,9 @@ def test_01_12():
sb.click('button:contains("Buy with crypto")')
sb.sleep(15)
sb.switch_to_window(4)
sb.sleep(17)
sb.sleep(15)
sb.click('button:contains("Reject")') #Confirm
sb.sleep(30)
sb.sleep(15)

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

0 comments on commit 595d985

Please sign in to comment.