From 3ee75bdab28a911df34b8a7f942c20e7baa8e7cd Mon Sep 17 00:00:00 2001 From: LynkMAD Date: Fri, 20 Sep 2024 12:04:14 +0700 Subject: [PATCH 1/2] fix sleep + url --- MULTI_FLOWS/tc0110.py | 4 ++-- MULTI_FLOWS/tc0113.py | 10 +++++----- MULTI_FLOWS/tc0114.py | 10 +++++----- MULTI_FLOWS/tc0115.py | 8 ++++---- MULTI_FLOWS/tc0116.py | 10 +++++----- MULTI_FLOWS/tc0117.py | 8 ++++---- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/MULTI_FLOWS/tc0110.py b/MULTI_FLOWS/tc0110.py index a9fd823..d17639f 100644 --- a/MULTI_FLOWS/tc0110.py +++ b/MULTI_FLOWS/tc0110.py @@ -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")') @@ -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")') diff --git a/MULTI_FLOWS/tc0113.py b/MULTI_FLOWS/tc0113.py index f20affa..c321003 100644 --- a/MULTI_FLOWS/tc0113.py +++ b/MULTI_FLOWS/tc0113.py @@ -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")') @@ -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")') @@ -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") \ No newline at end of file + test_01_13() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0114.py b/MULTI_FLOWS/tc0114.py index 691dbed..02b2eee 100644 --- a/MULTI_FLOWS/tc0114.py +++ b/MULTI_FLOWS/tc0114.py @@ -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")') @@ -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")') @@ -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") \ No newline at end of file + test_01_14() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0115.py b/MULTI_FLOWS/tc0115.py index bd3de27..c013809 100644 --- a/MULTI_FLOWS/tc0115.py +++ b/MULTI_FLOWS/tc0115.py @@ -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")') @@ -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")') @@ -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") \ No newline at end of file + test_01_15() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0116.py b/MULTI_FLOWS/tc0116.py index c28b008..a63e259 100644 --- a/MULTI_FLOWS/tc0116.py +++ b/MULTI_FLOWS/tc0116.py @@ -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")') @@ -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")') @@ -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") \ No newline at end of file + test_01_16() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0117.py b/MULTI_FLOWS/tc0117.py index fa13fa9..9bf3359 100644 --- a/MULTI_FLOWS/tc0117.py +++ b/MULTI_FLOWS/tc0117.py @@ -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")') @@ -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")') @@ -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") \ No newline at end of file + test_01_17() \ No newline at end of file From 3be31fff77513e01ce47bf783bc1e8b79354871f Mon Sep 17 00:00:00 2001 From: LynkMAD Date: Fri, 20 Sep 2024 20:42:11 +0700 Subject: [PATCH 2/2] fix url --- EXPIRATION_TIMES_CHANGE/tc0102.py | 2 +- EXPIRATION_TIMES_CHANGE/tc0104.py | 2 +- EXPIRATION_TIMES_CHANGE/tc0105.py | 2 +- EXPIRATION_TIMES_CHANGE/tc0106.py | 2 +- EXPIRATION_TIMES_CHANGE/tc0109.py | 2 +- EXPIRATION_TIMES_CHANGE/tc0110.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/EXPIRATION_TIMES_CHANGE/tc0102.py b/EXPIRATION_TIMES_CHANGE/tc0102.py index 0e83248..8c2d980 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0102.py +++ b/EXPIRATION_TIMES_CHANGE/tc0102.py @@ -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"]') diff --git a/EXPIRATION_TIMES_CHANGE/tc0104.py b/EXPIRATION_TIMES_CHANGE/tc0104.py index ffb9ded..53d5828 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0104.py +++ b/EXPIRATION_TIMES_CHANGE/tc0104.py @@ -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"]') diff --git a/EXPIRATION_TIMES_CHANGE/tc0105.py b/EXPIRATION_TIMES_CHANGE/tc0105.py index 3da1cd7..fbcdc3d 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0105.py +++ b/EXPIRATION_TIMES_CHANGE/tc0105.py @@ -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"]') diff --git a/EXPIRATION_TIMES_CHANGE/tc0106.py b/EXPIRATION_TIMES_CHANGE/tc0106.py index 9fb2c46..ff63fd1 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0106.py +++ b/EXPIRATION_TIMES_CHANGE/tc0106.py @@ -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"]') diff --git a/EXPIRATION_TIMES_CHANGE/tc0109.py b/EXPIRATION_TIMES_CHANGE/tc0109.py index 96151ca..d1083bc 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0109.py +++ b/EXPIRATION_TIMES_CHANGE/tc0109.py @@ -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"]') diff --git a/EXPIRATION_TIMES_CHANGE/tc0110.py b/EXPIRATION_TIMES_CHANGE/tc0110.py index e52c0e9..1561152 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0110.py +++ b/EXPIRATION_TIMES_CHANGE/tc0110.py @@ -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"]')