diff --git a/FIAT_PAYMENT_STAGE1/tc0101.py b/FIAT_PAYMENT_STAGE1/tc0101.py index 02d0ef8..5bd376c 100644 --- a/FIAT_PAYMENT_STAGE1/tc0101.py +++ b/FIAT_PAYMENT_STAGE1/tc0101.py @@ -62,7 +62,6 @@ def test_01_01(): sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(30) pass if __name__ == "__main__": diff --git a/FIAT_PAYMENT_STAGE1/tc0102.py b/FIAT_PAYMENT_STAGE1/tc0102.py index f2cba28..2cda166 100644 --- a/FIAT_PAYMENT_STAGE1/tc0102.py +++ b/FIAT_PAYMENT_STAGE1/tc0102.py @@ -62,7 +62,6 @@ def test_01_02(): sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(30) pass if __name__ == "__main__": diff --git a/FIAT_PAYMENT_STAGE1/tc0106.py b/FIAT_PAYMENT_STAGE1/tc0106.py index 27fc026..4cc5e31 100644 --- a/FIAT_PAYMENT_STAGE1/tc0106.py +++ b/FIAT_PAYMENT_STAGE1/tc0106.py @@ -62,7 +62,6 @@ def test_01_06(): sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(30) pass if __name__ == "__main__": diff --git a/FIAT_PAYMENT_STAGE1/tc0107.py b/FIAT_PAYMENT_STAGE1/tc0107.py index b1b787f..8d03101 100644 --- a/FIAT_PAYMENT_STAGE1/tc0107.py +++ b/FIAT_PAYMENT_STAGE1/tc0107.py @@ -2,10 +2,11 @@ import seleniumbase import time import os -def test_01_07(url): +def test_01_07(): 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/vietvb22/1" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -60,8 +61,7 @@ def test_01_07(url): sb.click('button:contains("Buy with crypto")') sb.sleep(7) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(60) + sb.click('button:contains("Reject")') if __name__ == "__main__": test_01_07("https://development.arttaca.io/nft/vietvb22/1") diff --git a/FIAT_PAYMENT_STAGE1/tc0108.py b/FIAT_PAYMENT_STAGE1/tc0108.py index 011739c..cce2c7b 100644 --- a/FIAT_PAYMENT_STAGE1/tc0108.py +++ b/FIAT_PAYMENT_STAGE1/tc0108.py @@ -62,7 +62,6 @@ def test_01_08(): sb.sleep(7) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(60) if __name__ == "__main__": test_01_08("https://development.arttaca.io/nft/datng4/1") diff --git a/FIAT_PAYMENT_STAGE1/tc0109.py b/FIAT_PAYMENT_STAGE1/tc0109.py index f75b3f5..2793890 100644 --- a/FIAT_PAYMENT_STAGE1/tc0109.py +++ b/FIAT_PAYMENT_STAGE1/tc0109.py @@ -70,7 +70,6 @@ def test_01_09(): sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(60) if __name__ == "__main__": test_01_09("https://development.arttaca.io/nft/uyenoianhyeuem/1") diff --git a/FIAT_PAYMENT_STAGE1/tc0110.py b/FIAT_PAYMENT_STAGE1/tc0110.py index 29869e4..7175562 100644 --- a/FIAT_PAYMENT_STAGE1/tc0110.py +++ b/FIAT_PAYMENT_STAGE1/tc0110.py @@ -6,7 +6,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/uyenoianhyeuem/1" + url = "https://development.arttaca.io/nft/multi-test-fiat/4" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -63,9 +63,6 @@ def test_01_10(): sb.sleep(7) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(7) - sb.switch_to_window(3) - sb.sleep(60) if __name__ == "__main__": test_01_10("https://development.arttaca.io/nft/uyenoianhyeuem/1") diff --git a/FIAT_PAYMENT_STAGE2/tc0101.py b/FIAT_PAYMENT_STAGE2/tc0101.py index c449642..5cfe757 100644 --- a/FIAT_PAYMENT_STAGE2/tc0101.py +++ b/FIAT_PAYMENT_STAGE2/tc0101.py @@ -3,10 +3,11 @@ import time import os -def tc_01_01(url): +def test_01_01(): 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/test0704/1" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -64,8 +65,6 @@ def tc_01_01(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_01("https://development.arttaca.io/nft/test0704/1") \ No newline at end of file + test_01_01("https://development.arttaca.io/nft/test0704/1") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0102.py b/FIAT_PAYMENT_STAGE2/tc0102.py index b229a4d..83c44c3 100644 --- a/FIAT_PAYMENT_STAGE2/tc0102.py +++ b/FIAT_PAYMENT_STAGE2/tc0102.py @@ -3,10 +3,11 @@ import time import os -def tc_01_02(url): +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/test0704/1" sb.sleep(7) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -64,8 +65,6 @@ def tc_01_02(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_02("https://development.arttaca.io/nft/test0704/1") \ No newline at end of file + test_01_02("https://development.arttaca.io/nft/test0704/1") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0105.py b/FIAT_PAYMENT_STAGE2/tc0105.py index f51c732..78bc0d5 100644 --- a/FIAT_PAYMENT_STAGE2/tc0105.py +++ b/FIAT_PAYMENT_STAGE2/tc0105.py @@ -3,10 +3,11 @@ import time import os -def tc_01_05(url): +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/test0704/1" sb.sleep(7) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -61,8 +62,6 @@ def tc_01_05(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_05("https://development.arttaca.io/nft/test0704/1") \ No newline at end of file + test_01_05("https://development.arttaca.io/nft/test0704/1") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0106.py b/FIAT_PAYMENT_STAGE2/tc0106.py index 7c36127..c0cbd0d 100644 --- a/FIAT_PAYMENT_STAGE2/tc0106.py +++ b/FIAT_PAYMENT_STAGE2/tc0106.py @@ -3,10 +3,11 @@ import time import os -def tc_01_06(url): +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-collection/6" sb.sleep(7) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -63,8 +64,6 @@ def tc_01_06(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_06("https://development.arttaca.io/nft/test-muti/3") \ No newline at end of file + test_01_06("https://development.arttaca.io/nft/test-muti/3") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0107.py b/FIAT_PAYMENT_STAGE2/tc0107.py index a90dc6e..2aac983 100644 --- a/FIAT_PAYMENT_STAGE2/tc0107.py +++ b/FIAT_PAYMENT_STAGE2/tc0107.py @@ -3,10 +3,11 @@ import time import os -def tc_01_07(url): +def test_01_07(): 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"]') @@ -64,8 +65,6 @@ def tc_01_07(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_07("https://development.arttaca.io/nft/test-multi2/14") \ No newline at end of file + test_01_07("https://development.arttaca.io/nft/test-multi2/14") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0108.py b/FIAT_PAYMENT_STAGE2/tc0108.py index cb42242..04fbe6d 100644 --- a/FIAT_PAYMENT_STAGE2/tc0108.py +++ b/FIAT_PAYMENT_STAGE2/tc0108.py @@ -3,10 +3,11 @@ import time import os -def tc_01_08(url): +def test_01_08(): 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"]') @@ -64,8 +65,6 @@ def tc_01_08(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_08("https://development.arttaca.io/nft/test-multi2/14") \ No newline at end of file + test_01_08("https://development.arttaca.io/nft/test-multi2/14") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0109.py b/FIAT_PAYMENT_STAGE2/tc0109.py index 52d801d..af079b0 100644 --- a/FIAT_PAYMENT_STAGE2/tc0109.py +++ b/FIAT_PAYMENT_STAGE2/tc0109.py @@ -3,10 +3,11 @@ import time import os -def tc_01_08(url): +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/multi-test-fiat/4" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -64,8 +65,6 @@ def tc_01_08(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_08("https://development.arttaca.io/nft/multi-test-fiat/4") \ No newline at end of file + test_01_09("https://development.arttaca.io/nft/multi-test-fiat/4") \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE2/tc0110.py b/FIAT_PAYMENT_STAGE2/tc0110.py index a90dc6e..ecc0c29 100644 --- a/FIAT_PAYMENT_STAGE2/tc0110.py +++ b/FIAT_PAYMENT_STAGE2/tc0110.py @@ -3,10 +3,11 @@ import time import os -def tc_01_07(url): +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/14" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -64,8 +65,6 @@ def tc_01_07(url): sb.type('input#cardExpiry',"12/56") sb.type('input#cardCvc',"321") sb.type('input#billingName',"Mai Anh Duong") - sb.click('button[data-testid="hosted-payment-submit-button"]') - sb.sleep(60) if __name__ == "__main__": - tc_01_07("https://development.arttaca.io/nft/test-multi2/14") \ No newline at end of file + test_01_10("https://development.arttaca.io/nft/test-multi2/14") \ No newline at end of file