From 5a572b914edcbbe9f97f9e4c0375e075688a59f9 Mon Sep 17 00:00:00 2001 From: LynkMAD Date: Thu, 19 Sep 2024 22:51:48 +0700 Subject: [PATCH] 19-09 --- EXPIRATION_TIMES_CHANGE/tc0101.py | 23 +++++++++---------- EXPIRATION_TIMES_CHANGE/tc0102.py | 25 +++++++++++---------- EXPIRATION_TIMES_CHANGE/tc0103.py | 23 ++++++++++--------- EXPIRATION_TIMES_CHANGE/tc0104.py | 9 ++++---- EXPIRATION_TIMES_CHANGE/tc0105.py | 23 ++++++++++--------- EXPIRATION_TIMES_CHANGE/tc0106.py | 23 ++++++++++--------- EXPIRATION_TIMES_CHANGE/tc0107.py | 37 +++++++++++++------------------ EXPIRATION_TIMES_CHANGE/tc0108.py | 23 ++++++++++--------- EXPIRATION_TIMES_CHANGE/tc0109.py | 23 ++++++++++--------- EXPIRATION_TIMES_CHANGE/tc0110.py | 23 ++++++++++--------- MULTI_FLOWS/tc0108.py | 7 +++--- MULTI_FLOWS/tc0109.py | 5 +++-- MULTI_FLOWS/tc0110.py | 5 +++-- MULTI_FLOWS/tc0111.py | 5 +++-- 14 files changed, 129 insertions(+), 125 deletions(-) diff --git a/EXPIRATION_TIMES_CHANGE/tc0101.py b/EXPIRATION_TIMES_CHANGE/tc0101.py index cc32b49..9440913 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0101.py +++ b/EXPIRATION_TIMES_CHANGE/tc0101.py @@ -3,11 +3,11 @@ import time import os -def tc_01_01(): +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")') @@ -34,7 +34,7 @@ def tc_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")') @@ -43,23 +43,20 @@ def tc_01_01(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.switch_to_window(2) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) sb.click('button:contains("Create")') - sb.click('span:contains("Mint a NFT to an Existing Collection")') - buttons = sb.find_elements('button:contains("Select")') - sb.sleep(7) - buttons[2].click() - + sb.click('span:contains("Add an Artwork to an Existing Series")') + sb.click('span.ButtonBlock__Text-sc-z43f5s-2.dnuSfD.button-block__content') sb.type('input#name', "autotest0101 expiration") sb.type('textarea#description', "autotestautotestautotestautotest") img_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'img', 'Ed-Sheeran-posing.jpg')) @@ -67,8 +64,8 @@ def tc_01_01(): sb.click('span:contains("Mint later")') sb.sleep(15) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.click('button:contains("Cancel")') #Confirm + sb.sleep(15) if __name__ == "__main__": - tc_01_01() \ No newline at end of file + test_01_01() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0102.py b/EXPIRATION_TIMES_CHANGE/tc0102.py index 80fe77a..0e83248 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0102.py +++ b/EXPIRATION_TIMES_CHANGE/tc0102.py @@ -3,11 +3,12 @@ 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: - sb.sleep(5) + url = "https://development.arttaca.io/nft/test-muti/3" + sb.sleep(15) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_02(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")') @@ -43,25 +44,25 @@ def tc_01_02(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button:contains("List Now")') - sb.type('input#reservePrice', "0.0000001") + sb.type('input#reservePrice', "0.00001") sb.click('span:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.click('button:contains("Reject")') #Confirm + sb.sleep(15) if __name__ == "__main__": - tc_01_02("https://development.arttaca.io/nft/hehehehehehe/3") \ No newline at end of file + test_01_02() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0103.py b/EXPIRATION_TIMES_CHANGE/tc0103.py index e21d2c9..ac746dd 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0103.py +++ b/EXPIRATION_TIMES_CHANGE/tc0103.py @@ -3,11 +3,12 @@ import time import os -def tc_01_03(url): +def test_01_03(): with SB( extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome')) ) as sb: - sb.sleep(5) + 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"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_03(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")') @@ -43,22 +44,22 @@ def tc_01_03(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button:contains("Unlist")') - sb.click('button:contains("Yes")') - sb.click('button:contains("Close")') - sb.sleep(30) + sb.click('button:contains("No")') #Yes + # sb.click('button:contains("Close")') + sb.sleep(15) if __name__ == "__main__": - tc_01_03("https://development.arttaca.io/nft/hehehehehehe/1") \ No newline at end of file + test_01_03() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0104.py b/EXPIRATION_TIMES_CHANGE/tc0104.py index a25423d..ffb9ded 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0104.py +++ b/EXPIRATION_TIMES_CHANGE/tc0104.py @@ -3,10 +3,11 @@ import time import os -def tc_01_04(url): +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" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -57,12 +58,12 @@ def tc_01_04(url): sb.switch_to_window(3) sb.click('div.ThreeDots__ThreeDotButton-sc-1wt0g0h-0.EZXOj.three-dots') sb.click('button:contains("Transfer")') - sb.type('input[placeholder="Search by user name or address"]',"0x9Ea8a7F39e7bC81A08f16b3e6d097d1Cc4C5cE6D") + sb.type('input[placeholder="Search by username or address"]',"0x9Ea8a7F39e7bC81A08f16b3e6d097d1Cc4C5cE6D") sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') + sb.click('button:contains("Reject")') #Confirm sb.sleep(30) if __name__ == "__main__": - tc_01_04("https://development.arttaca.io/nft/hehehehehehe/1") \ No newline at end of file + test_01_04() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0105.py b/EXPIRATION_TIMES_CHANGE/tc0105.py index c250d6e..3da1cd7 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0105.py +++ b/EXPIRATION_TIMES_CHANGE/tc0105.py @@ -3,11 +3,12 @@ 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: - sb.sleep(5) + url = "https://development.arttaca.io/nft/test-listing/4" + sb.sleep(15) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_05(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")') @@ -43,25 +44,25 @@ def tc_01_05(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(30) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('div.ThreeDots__ThreeDotButton-sc-1wt0g0h-0.EZXOj.three-dots') sb.click('button:contains("Burn")') - sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.click('button:contains("Cancel")') #Confirm + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.sleep(15) if __name__ == "__main__": - tc_01_05("https://development.arttaca.io/nft/hehehehehehe/1") \ No newline at end of file + test_01_05() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0106.py b/EXPIRATION_TIMES_CHANGE/tc0106.py index 81c7c9a..9fb2c46 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0106.py +++ b/EXPIRATION_TIMES_CHANGE/tc0106.py @@ -3,11 +3,12 @@ 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: - sb.sleep(5) + url = "https://development.arttaca.io/nft/test-listing/4" + sb.sleep(15) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_06(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")') @@ -43,25 +44,25 @@ def tc_01_06(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(30) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('div.ThreeDots__ThreeDotButton-sc-1wt0g0h-0.EZXOj.three-dots') sb.click('button:contains("Burn")') - sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.click('button:contains("Cancel")') #Confirm + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.sleep(15) if __name__ == "__main__": - tc_01_06("https://development.arttaca.io/nft/hehehehehehe/3") \ No newline at end of file + test_01_06() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0107.py b/EXPIRATION_TIMES_CHANGE/tc0107.py index c8d64c2..9399c4f 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0107.py +++ b/EXPIRATION_TIMES_CHANGE/tc0107.py @@ -3,11 +3,12 @@ import time import os -def tc_01_07(): +def test_01_07(): with SB( extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome')) ) as sb: - sb.sleep(5) + url = "https://development.arttaca.io/nft/hehehehehehe/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")') @@ -34,40 +35,34 @@ def tc_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")') sb.open_new_window() - sb.open("https://development.arttaca.io/") + sb.open(url) sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.switch_to_window(2) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') + sb.sleep(15) sb.switch_to_window(3) - sb.click('button:contains("Create")') - sb.click('span:contains("Mint a NFT to an Existing Collection")') - sb.sleep(5) - buttons = sb.find_elements('span:contains("Select")') - buttons[2].click() - sb.type('input#name', "autotest0107") - sb.type('textarea#description', "autotestautotestautotestautotest") - 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(7) + sb.click('button:contains("List Now")') + sb.type('input#reservePrice', "0.00001") + sb.click('span:contains("Confirm")') + sb.sleep(15) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.click('button:contains("Reject")') #Confirm + sb.sleep(15) if __name__ == "__main__": - tc_01_07() \ No newline at end of file + test_01_07() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0108.py b/EXPIRATION_TIMES_CHANGE/tc0108.py index 942ba8c..ef8f423 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0108.py +++ b/EXPIRATION_TIMES_CHANGE/tc0108.py @@ -3,11 +3,12 @@ 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: - sb.sleep(5) + url = "https://development.arttaca.io/nft/test-multi2/15" + sb.sleep(15) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_08(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")') @@ -43,24 +44,24 @@ def tc_01_08(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Buy with crypto")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.click('button:contains("Reject")') #Confirm + sb.sleep(15) if __name__ == "__main__": - tc_01_08("https://development.arttaca.io/nft/hieukkkk/4") \ No newline at end of file + test_01_08() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0109.py b/EXPIRATION_TIMES_CHANGE/tc0109.py index ba68774..96151ca 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0109.py +++ b/EXPIRATION_TIMES_CHANGE/tc0109.py @@ -3,11 +3,12 @@ import time import os -def tc_01_09(url): +def test_01_09(): with SB( extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome')) ) as sb: - sb.sleep(5) + url = "https://development.arttaca.io/nft/hehehehehehe/2" + sb.sleep(15) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_09(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")') @@ -43,24 +44,24 @@ def tc_01_09(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Buy with crypto")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.click('button:contains("Reject")') #Confirm + sb.sleep(15) if __name__ == "__main__": - tc_01_09("https://development.arttaca.io/nft/hieukkkk/5") \ No newline at end of file + test_01_09() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0110.py b/EXPIRATION_TIMES_CHANGE/tc0110.py index 72aabed..e52c0e9 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0110.py +++ b/EXPIRATION_TIMES_CHANGE/tc0110.py @@ -3,11 +3,12 @@ import time import os -def tc_01_10(url): +def test_01_10(): with SB( extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome')) ) as sb: - sb.sleep(5) + url = "https://development.arttaca.io/nft/hehehehehehe/2" + sb.sleep(15) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -34,7 +35,7 @@ def tc_01_10(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")') @@ -43,24 +44,24 @@ def tc_01_10(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Buy with crypto")') - sb.sleep(7) + sb.sleep(15) sb.switch_to_window(4) - sb.click('button:contains("Confirm")') - sb.sleep(30) + sb.click('button:contains("Reject")') #Confirm + sb.sleep(15) if __name__ == "__main__": - tc_01_10("https://development.arttaca.io/nft/hehehehehehe/4") \ No newline at end of file + test_01_10() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0108.py b/MULTI_FLOWS/tc0108.py index cf1c1cd..28ed213 100644 --- a/MULTI_FLOWS/tc0108.py +++ b/MULTI_FLOWS/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/3" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -55,7 +56,7 @@ def tc_01_08(url): sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) - sb.click('button:contains("List New")') + sb.click('button:contains("List Now")') sb.type("#reservePrice", "0.0001") sb.type("#quantity", 1) sb.click('button:contains("Confirm")') @@ -66,4 +67,4 @@ def tc_01_08(url): if __name__ == "__main__": - tc_01_08("https://development.arttaca.io/nft/test-multi2/3") \ No newline at end of file + test_01_08() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0109.py b/MULTI_FLOWS/tc0109.py index 7690a87..e4c1479 100644 --- a/MULTI_FLOWS/tc0109.py +++ b/MULTI_FLOWS/tc0109.py @@ -3,10 +3,11 @@ import time import os -def tc_01_09(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/test-multi2/3" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -66,4 +67,4 @@ def tc_01_09(url): if __name__ == "__main__": - tc_01_09("https://development.arttaca.io/nft/test-multi2/3") \ No newline at end of file + test_01_09() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0110.py b/MULTI_FLOWS/tc0110.py index f65114c..1ad879f 100644 --- a/MULTI_FLOWS/tc0110.py +++ b/MULTI_FLOWS/tc0110.py @@ -3,10 +3,11 @@ import time import os -def tc_01_10(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/3" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -58,4 +59,4 @@ def tc_01_10(url): sb.sleep(3000) if __name__ == "__main__": - tc_01_10("https://development.arttaca.io/nft/test-multi2/3") \ No newline at end of file + test_01_10() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0111.py b/MULTI_FLOWS/tc0111.py index d7b414b..60b9ec8 100644 --- a/MULTI_FLOWS/tc0111.py +++ b/MULTI_FLOWS/tc0111.py @@ -3,10 +3,11 @@ import time import os -def tc_01_11(url): +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/uyenoianhyeuem/1" sb.sleep(5) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') @@ -60,4 +61,4 @@ def tc_01_11(url): sb.sleep(30) if __name__ == "__main__": - tc_01_11("https://development.arttaca.io/nft/test-multi2/3") \ No newline at end of file + test_01_11() \ No newline at end of file