From 0cd90b0f52ead6d83af3a4757475007adbea4db9 Mon Sep 17 00:00:00 2001 From: Hieu Date: Fri, 20 Sep 2024 21:19:30 +0700 Subject: [PATCH] Update sleep in all files --- .github/workflows/multi-flow-part1.yml | 2 +- .github/workflows/multi-flow-part2.yml | 2 +- EXPIRATION_TIMES_CHANGE/tc0101.py | 12 ++++++------ EXPIRATION_TIMES_CHANGE/tc0102.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0103.py | 14 +++++++------- EXPIRATION_TIMES_CHANGE/tc0105.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0106.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0107.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0108.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0109.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0110.py | 16 ++++++++-------- EXPIRATION_TIMES_CHANGE/tc0111.py | 10 +++++----- EXPIRATION_TIMES_CHANGE/tc0112.py | 10 +++++----- EXPIRATION_TIMES_CHANGE/tc0113.py | 8 ++++---- EXPIRATION_TIMES_CHANGE/tc0114.py | 8 ++++---- EXPIRATION_TIMES_CHANGE/tc0115.py | 6 +++--- EXPIRATION_TIMES_CHANGE/tc0116.py | 6 +++--- EXPIRATION_TIMES_CHANGE/tc0117.py | 8 ++++---- EXPIRATION_TIMES_CHANGE/tc0118.py | 8 ++++---- EXPIRATION_TIMES_CHANGE/tc0119.py | 6 +++--- EXPIRATION_TIMES_CHANGE/tc0120.py | 6 +++--- FIAT_PAYMENT_STAGE1/tc0101.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0102.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0105.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0106.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0107.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0108.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0109.py | 10 +++++----- FIAT_PAYMENT_STAGE1/tc0110.py | 8 ++++---- FIAT_PAYMENT_STAGE1/test.py | 2 +- FIAT_PAYMENT_STAGE2/tc0101.py | 10 +++++----- FIAT_PAYMENT_STAGE2/tc0102.py | 12 ++++++------ FIAT_PAYMENT_STAGE2/tc0105.py | 14 +++++++------- FIAT_PAYMENT_STAGE2/tc0106.py | 12 ++++++------ FIAT_PAYMENT_STAGE2/tc0107.py | 10 +++++----- FIAT_PAYMENT_STAGE2/tc0108.py | 10 +++++----- FIAT_PAYMENT_STAGE2/tc0109.py | 10 +++++----- FIAT_PAYMENT_STAGE2/tc0110.py | 10 +++++----- MULTI_FLOWS/tc0101.py | 10 +++++----- MULTI_FLOWS/tc0102.py | 6 +++--- MULTI_FLOWS/tc0104.py | 8 ++++---- MULTI_FLOWS/tc0105.py | 14 +++++++------- MULTI_FLOWS/tc0106.py | 8 ++++---- MULTI_FLOWS/tc0107.py | 14 +++++++------- MULTI_FLOWS/tc0108.py | 14 +++++++------- MULTI_FLOWS/tc0109.py | 12 ++++++------ MULTI_FLOWS/tc0110.py | 10 +++++----- MULTI_FLOWS/tc0111.py | 12 ++++++------ MULTI_FLOWS/tc0112.py | 18 +++++++++--------- MULTI_FLOWS/tc0113.py | 14 +++++++------- MULTI_FLOWS/tc0114.py | 12 ++++++------ MULTI_FLOWS/tc0115.py | 12 ++++++------ MULTI_FLOWS/tc0116.py | 14 +++++++------- MULTI_FLOWS/tc0117.py | 14 +++++++------- MULTI_FLOWS/tc0118.py | 12 ++++++------ MULTI_FLOWS/tc0119.py | 10 +++++----- MULTI_FLOWS/tc0120.py | 10 +++++----- MULTI_FLOWS/tc0121.py | 10 +++++----- MULTI_FLOWS/tc0122.py | 12 ++++++------ MULTI_FLOWS/tc0123.py | 10 +++++----- MULTI_FLOWS/tc0124.py | 10 +++++----- MULTI_FLOWS/tc0125.py | 10 +++++----- MULTI_FLOWS/tc0126.py | 10 +++++----- MULTI_FLOWS/tc0127.py | 10 +++++----- MULTI_FLOWS/test_01_03.py | 4 ++-- 65 files changed, 343 insertions(+), 343 deletions(-) diff --git a/.github/workflows/multi-flow-part1.yml b/.github/workflows/multi-flow-part1.yml index 480ba8d..916c42e 100644 --- a/.github/workflows/multi-flow-part1.yml +++ b/.github/workflows/multi-flow-part1.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Multi flows +name: Multi flows part 1 on: push: diff --git a/.github/workflows/multi-flow-part2.yml b/.github/workflows/multi-flow-part2.yml index 5c49c9c..e81e35a 100644 --- a/.github/workflows/multi-flow-part2.yml +++ b/.github/workflows/multi-flow-part2.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Multi flows +name: Multi flows part 2 on: push: diff --git a/EXPIRATION_TIMES_CHANGE/tc0101.py b/EXPIRATION_TIMES_CHANGE/tc0101.py index 9440913..bdcc675 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0101.py +++ b/EXPIRATION_TIMES_CHANGE/tc0101.py @@ -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(15) + sb.sleep(30) 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 test_01_01(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -43,14 +43,14 @@ def test_01_01(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) @@ -62,10 +62,10 @@ def test_01_01(): 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 later")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_01() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0102.py b/EXPIRATION_TIMES_CHANGE/tc0102.py index 8c2d980..0f05198 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0102.py +++ b/EXPIRATION_TIMES_CHANGE/tc0102.py @@ -8,7 +8,7 @@ def test_01_02(): extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome')) ) as sb: url = "https://development.arttaca.io/nft/hieukkkk/4" - sb.sleep(15) + sb.sleep(30) 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_02(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,25 +44,25 @@ def test_01_02(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("List Now")') sb.type('input#reservePrice', "0.00001") sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_02() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0103.py b/EXPIRATION_TIMES_CHANGE/tc0103.py index ac746dd..1745eca 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0103.py +++ b/EXPIRATION_TIMES_CHANGE/tc0103.py @@ -8,7 +8,7 @@ def test_01_03(): 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/2" - sb.sleep(15) + sb.sleep(30) 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_03(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,22 +44,22 @@ def test_01_03(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Unlist")') sb.click('button:contains("No")') #Yes # sb.click('button:contains("Close")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_03() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0105.py b/EXPIRATION_TIMES_CHANGE/tc0105.py index fbcdc3d..def25ce 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0105.py +++ b/EXPIRATION_TIMES_CHANGE/tc0105.py @@ -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/hehehehehehe/6" - sb.sleep(15) + sb.sleep(30) 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_05(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,25 +44,25 @@ def test_01_05(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) 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("Cancel")') #Confirm - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_05() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0106.py b/EXPIRATION_TIMES_CHANGE/tc0106.py index ff63fd1..dc51e4c 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0106.py +++ b/EXPIRATION_TIMES_CHANGE/tc0106.py @@ -8,7 +8,7 @@ def test_01_06(): 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/2" - sb.sleep(15) + sb.sleep(30) 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_06(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,25 +44,25 @@ def test_01_06(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) 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("Cancel")') #Confirm - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_06() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0107.py b/EXPIRATION_TIMES_CHANGE/tc0107.py index 9399c4f..bc5a957 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0107.py +++ b/EXPIRATION_TIMES_CHANGE/tc0107.py @@ -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/hehehehehehe/5" - sb.sleep(15) + sb.sleep(30) 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_07(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,25 +44,25 @@ def test_01_07(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("List Now")') sb.type('input#reservePrice', "0.00001") sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_07() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0108.py b/EXPIRATION_TIMES_CHANGE/tc0108.py index ef8f423..9265f8e 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0108.py +++ b/EXPIRATION_TIMES_CHANGE/tc0108.py @@ -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/15" - sb.sleep(15) + sb.sleep(30) 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_08(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,24 +44,24 @@ def test_01_08(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_08() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0109.py b/EXPIRATION_TIMES_CHANGE/tc0109.py index d1083bc..1cdf387 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0109.py +++ b/EXPIRATION_TIMES_CHANGE/tc0109.py @@ -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/hehehehehehe/7" - sb.sleep(15) + sb.sleep(30) 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_09(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,24 +44,24 @@ def test_01_09(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_09() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0110.py b/EXPIRATION_TIMES_CHANGE/tc0110.py index 1561152..7cacb96 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0110.py +++ b/EXPIRATION_TIMES_CHANGE/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/hehehehehehe/7" - sb.sleep(15) + sb.sleep(30) 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(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,24 +44,24 @@ def test_01_10(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_10() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0111.py b/EXPIRATION_TIMES_CHANGE/tc0111.py index 9cc8416..31d618d 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0111.py +++ b/EXPIRATION_TIMES_CHANGE/tc0111.py @@ -44,25 +44,25 @@ def test_01_11(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(6) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Burn")') sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm -> Reject - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_11() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0112.py b/EXPIRATION_TIMES_CHANGE/tc0112.py index 445945a..5dabfba 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0112.py +++ b/EXPIRATION_TIMES_CHANGE/tc0112.py @@ -44,14 +44,14 @@ def test_01_12(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -61,10 +61,10 @@ def test_01_12(): sb.type('input[placeholder="Search by username or address"]', "Hoang") sb.click('span:contains("@eternertyy")') sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm -> Reject - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_12() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0113.py b/EXPIRATION_TIMES_CHANGE/tc0113.py index ee8d135..9083bd2 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0113.py +++ b/EXPIRATION_TIMES_CHANGE/tc0113.py @@ -44,14 +44,14 @@ def test_01_13(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -60,7 +60,7 @@ def test_01_13(): sb.click('button:contains("Transfer")') sb.sleep(2) sb.click('button:contains("Cancel")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_13() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0114.py b/EXPIRATION_TIMES_CHANGE/tc0114.py index c0640c0..4290e0d 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0114.py +++ b/EXPIRATION_TIMES_CHANGE/tc0114.py @@ -44,14 +44,14 @@ def test_01_14(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -62,10 +62,10 @@ def test_01_14(): sb.click('span:contains("@eternertyy")') sb.type("#quantity", "1") sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_14() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0115.py b/EXPIRATION_TIMES_CHANGE/tc0115.py index 50d5332..6fc1c32 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0115.py +++ b/EXPIRATION_TIMES_CHANGE/tc0115.py @@ -44,14 +44,14 @@ def test_01_15(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -60,7 +60,7 @@ def test_01_15(): sb.click('button:contains("Burn")') sb.sleep(2) sb.click('button:contains("Cancel")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_15() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0116.py b/EXPIRATION_TIMES_CHANGE/tc0116.py index ff2e1a7..87f0403 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0116.py +++ b/EXPIRATION_TIMES_CHANGE/tc0116.py @@ -44,14 +44,14 @@ def test_01_16(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -61,7 +61,7 @@ def test_01_16(): sb.type("#reservePrice", "0") sb.type("#quantity", 1) sb.click('button:contains("Cancel")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_16() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0117.py b/EXPIRATION_TIMES_CHANGE/tc0117.py index d310f89..9947309 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0117.py +++ b/EXPIRATION_TIMES_CHANGE/tc0117.py @@ -44,14 +44,14 @@ def test_01_17(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -64,10 +64,10 @@ def test_01_17(): 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('button:contains("Mint later")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_17() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0118.py b/EXPIRATION_TIMES_CHANGE/tc0118.py index 3129029..2fc3b38 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0118.py +++ b/EXPIRATION_TIMES_CHANGE/tc0118.py @@ -44,14 +44,14 @@ def test_01_18(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) @@ -64,10 +64,10 @@ def test_01_18(): 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('button:contains("Mint now")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_18() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0119.py b/EXPIRATION_TIMES_CHANGE/tc0119.py index bc0f413..80edab0 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0119.py +++ b/EXPIRATION_TIMES_CHANGE/tc0119.py @@ -44,19 +44,19 @@ def test_01_19(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_19() \ No newline at end of file diff --git a/EXPIRATION_TIMES_CHANGE/tc0120.py b/EXPIRATION_TIMES_CHANGE/tc0120.py index 68dc21c..1388a70 100644 --- a/EXPIRATION_TIMES_CHANGE/tc0120.py +++ b/EXPIRATION_TIMES_CHANGE/tc0120.py @@ -44,21 +44,21 @@ def test_01_20(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.sleep(7) sb.switch_to_window(3) sb.click(".paper") sb.click('p:contains("inventory")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_20() \ No newline at end of file diff --git a/FIAT_PAYMENT_STAGE1/tc0101.py b/FIAT_PAYMENT_STAGE1/tc0101.py index d65aee7..2b645dc 100644 --- a/FIAT_PAYMENT_STAGE1/tc0101.py +++ b/FIAT_PAYMENT_STAGE1/tc0101.py @@ -43,23 +43,23 @@ def test_01_01(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) sb.sleep(5) sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') pass diff --git a/FIAT_PAYMENT_STAGE1/tc0102.py b/FIAT_PAYMENT_STAGE1/tc0102.py index 7096422..64150e5 100644 --- a/FIAT_PAYMENT_STAGE1/tc0102.py +++ b/FIAT_PAYMENT_STAGE1/tc0102.py @@ -43,23 +43,23 @@ def test_01_02(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) sb.sleep(5) sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') pass diff --git a/FIAT_PAYMENT_STAGE1/tc0105.py b/FIAT_PAYMENT_STAGE1/tc0105.py index dffb275..af5061a 100644 --- a/FIAT_PAYMENT_STAGE1/tc0105.py +++ b/FIAT_PAYMENT_STAGE1/tc0105.py @@ -34,7 +34,7 @@ def test_01_05(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('button:contains("Add network")') buttons = sb.find_elements('button:contains("Add")') @@ -47,14 +47,14 @@ def test_01_05(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) @@ -62,7 +62,7 @@ def test_01_05(): sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') diff --git a/FIAT_PAYMENT_STAGE1/tc0106.py b/FIAT_PAYMENT_STAGE1/tc0106.py index c24e592..c894003 100644 --- a/FIAT_PAYMENT_STAGE1/tc0106.py +++ b/FIAT_PAYMENT_STAGE1/tc0106.py @@ -43,23 +43,23 @@ def test_01_06(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) sb.sleep(5) sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') pass diff --git a/FIAT_PAYMENT_STAGE1/tc0107.py b/FIAT_PAYMENT_STAGE1/tc0107.py index 3feec3a..d5099b0 100644 --- a/FIAT_PAYMENT_STAGE1/tc0107.py +++ b/FIAT_PAYMENT_STAGE1/tc0107.py @@ -43,23 +43,23 @@ def test_01_07(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) sb.sleep(5) sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') diff --git a/FIAT_PAYMENT_STAGE1/tc0108.py b/FIAT_PAYMENT_STAGE1/tc0108.py index 3276e3c..8cc0760 100644 --- a/FIAT_PAYMENT_STAGE1/tc0108.py +++ b/FIAT_PAYMENT_STAGE1/tc0108.py @@ -43,23 +43,23 @@ def test_01_08(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) sb.sleep(5) sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') diff --git a/FIAT_PAYMENT_STAGE1/tc0109.py b/FIAT_PAYMENT_STAGE1/tc0109.py index 6921f77..4fb467d 100644 --- a/FIAT_PAYMENT_STAGE1/tc0109.py +++ b/FIAT_PAYMENT_STAGE1/tc0109.py @@ -43,23 +43,23 @@ def test_01_09(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) - sb.sleep(15) + sb.sleep(30) sb.sleep(5) sb.open(url) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') diff --git a/FIAT_PAYMENT_STAGE1/tc0110.py b/FIAT_PAYMENT_STAGE1/tc0110.py index 8f60e47..4600cb6 100644 --- a/FIAT_PAYMENT_STAGE1/tc0110.py +++ b/FIAT_PAYMENT_STAGE1/tc0110.py @@ -43,14 +43,14 @@ def test_01_10(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) @@ -60,7 +60,7 @@ def test_01_10(): sb.click('button:contains("See listings")') sb.click('div.ModalSelectListings__DivWidth-sc-4amr6o-10.bcHLLO') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') diff --git a/FIAT_PAYMENT_STAGE1/test.py b/FIAT_PAYMENT_STAGE1/test.py index 06a4e82..3b6717b 100644 --- a/FIAT_PAYMENT_STAGE1/test.py +++ b/FIAT_PAYMENT_STAGE1/test.py @@ -42,7 +42,7 @@ def test_metamask(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') diff --git a/FIAT_PAYMENT_STAGE2/tc0101.py b/FIAT_PAYMENT_STAGE2/tc0101.py index 50c81db..890f121 100644 --- a/FIAT_PAYMENT_STAGE2/tc0101.py +++ b/FIAT_PAYMENT_STAGE2/tc0101.py @@ -44,21 +44,21 @@ def test_01_01(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/FIAT_PAYMENT_STAGE2/tc0102.py b/FIAT_PAYMENT_STAGE2/tc0102.py index 6ba1e2d..e1e23a0 100644 --- a/FIAT_PAYMENT_STAGE2/tc0102.py +++ b/FIAT_PAYMENT_STAGE2/tc0102.py @@ -8,7 +8,7 @@ def test_01_02(): 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(15) + sb.sleep(30) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -44,21 +44,21 @@ def test_01_02(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4000 0000 0000 9995") diff --git a/FIAT_PAYMENT_STAGE2/tc0105.py b/FIAT_PAYMENT_STAGE2/tc0105.py index ede40ed..1885343 100644 --- a/FIAT_PAYMENT_STAGE2/tc0105.py +++ b/FIAT_PAYMENT_STAGE2/tc0105.py @@ -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/test0704/1" - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -36,26 +36,26 @@ def test_01_05(): sb.click('button:contains("Next")') sb.click('button:contains("Done")') sb.open_new_window() - sb.sleep(15) + sb.sleep(30) sb.open(url) sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/FIAT_PAYMENT_STAGE2/tc0106.py b/FIAT_PAYMENT_STAGE2/tc0106.py index 1180eb8..ff2cca3 100644 --- a/FIAT_PAYMENT_STAGE2/tc0106.py +++ b/FIAT_PAYMENT_STAGE2/tc0106.py @@ -8,7 +8,7 @@ def test_01_06(): 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(15) + sb.sleep(30) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -43,21 +43,21 @@ def test_01_06(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/FIAT_PAYMENT_STAGE2/tc0107.py b/FIAT_PAYMENT_STAGE2/tc0107.py index c0a7a01..ab87342 100644 --- a/FIAT_PAYMENT_STAGE2/tc0107.py +++ b/FIAT_PAYMENT_STAGE2/tc0107.py @@ -44,21 +44,21 @@ def test_01_07(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/FIAT_PAYMENT_STAGE2/tc0108.py b/FIAT_PAYMENT_STAGE2/tc0108.py index 8d2f16b..eddf329 100644 --- a/FIAT_PAYMENT_STAGE2/tc0108.py +++ b/FIAT_PAYMENT_STAGE2/tc0108.py @@ -44,21 +44,21 @@ def test_01_08(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/FIAT_PAYMENT_STAGE2/tc0109.py b/FIAT_PAYMENT_STAGE2/tc0109.py index 63c8b31..0974698 100644 --- a/FIAT_PAYMENT_STAGE2/tc0109.py +++ b/FIAT_PAYMENT_STAGE2/tc0109.py @@ -44,21 +44,21 @@ def test_01_09(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/FIAT_PAYMENT_STAGE2/tc0110.py b/FIAT_PAYMENT_STAGE2/tc0110.py index 3ca4e20..06846ee 100644 --- a/FIAT_PAYMENT_STAGE2/tc0110.py +++ b/FIAT_PAYMENT_STAGE2/tc0110.py @@ -44,21 +44,21 @@ def test_01_10(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('span:contains("Checkout with card")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_frame('iframe[name="embedded-checkout"]') sb.type('input#email',"maianhduong16012004@gmail.com") sb.type('input#cardNumber',"4242 4242 4242 4242") diff --git a/MULTI_FLOWS/tc0101.py b/MULTI_FLOWS/tc0101.py index 3aa9968..ac3b2c5 100644 --- a/MULTI_FLOWS/tc0101.py +++ b/MULTI_FLOWS/tc0101.py @@ -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(15) + sb.sleep(30) 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 test_01_01(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -43,14 +43,14 @@ def test_01_01(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) @@ -62,7 +62,7 @@ def test_01_01(): 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 later")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') #Confirm diff --git a/MULTI_FLOWS/tc0102.py b/MULTI_FLOWS/tc0102.py index c076a81..cb9fe14 100644 --- a/MULTI_FLOWS/tc0102.py +++ b/MULTI_FLOWS/tc0102.py @@ -43,14 +43,14 @@ def test_01_02(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) @@ -63,7 +63,7 @@ def test_01_02(): sb.choose_file('input[type="file"]', img_path) sb.type('input#quantity',"5") sb.click('span:contains("Mint later")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') #Confirm sb.sleep(30) diff --git a/MULTI_FLOWS/tc0104.py b/MULTI_FLOWS/tc0104.py index 7a4e2ef..cea0208 100644 --- a/MULTI_FLOWS/tc0104.py +++ b/MULTI_FLOWS/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: - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(1) sb.click('input[data-testid="onboarding-terms-checkbox"]') sb.click('button:contains("Import an existing wallet")') @@ -43,14 +43,14 @@ def test_01_04(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3) @@ -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(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') sb.sleep(30) diff --git a/MULTI_FLOWS/tc0105.py b/MULTI_FLOWS/tc0105.py index 0c57435..8e40956 100644 --- a/MULTI_FLOWS/tc0105.py +++ b/MULTI_FLOWS/tc0105.py @@ -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(15) + sb.sleep(30) 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_05(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,23 +44,23 @@ def test_01_05(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("List Now")') sb.type('input#reservePrice', "0.0001") sb.type('input#quantity', "1") sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') #Confirm sb.sleep(30) diff --git a/MULTI_FLOWS/tc0106.py b/MULTI_FLOWS/tc0106.py index 844e982..4689eea 100644 --- a/MULTI_FLOWS/tc0106.py +++ b/MULTI_FLOWS/tc0106.py @@ -44,17 +44,17 @@ def test_01_06(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("List Now")') sb.type('input#reservePrice', "0.0001") diff --git a/MULTI_FLOWS/tc0107.py b/MULTI_FLOWS/tc0107.py index c22c369..f9ebdc1 100644 --- a/MULTI_FLOWS/tc0107.py +++ b/MULTI_FLOWS/tc0107.py @@ -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(15) + sb.sleep(30) 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_07(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,24 +44,24 @@ def test_01_07(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("List Now")') sb.type('input#reservePrice', "0.0001") sb.type('input#quantity', "3") sb.type('input#quantity', "2") sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') sb.sleep(30) diff --git a/MULTI_FLOWS/tc0108.py b/MULTI_FLOWS/tc0108.py index 4cd02a2..2d4378e 100644 --- a/MULTI_FLOWS/tc0108.py +++ b/MULTI_FLOWS/tc0108.py @@ -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(15) + sb.sleep(30) 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_08(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,24 +44,24 @@ def test_01_08(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click(".three-dots") sb.click('button:contains("List Now")') sb.type("#reservePrice", "0.0001") sb.type("#quantity", 1) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Cancel")') #Confirm sb.sleep(30) diff --git a/MULTI_FLOWS/tc0109.py b/MULTI_FLOWS/tc0109.py index b992156..06cfb97 100644 --- a/MULTI_FLOWS/tc0109.py +++ b/MULTI_FLOWS/tc0109.py @@ -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(15) + sb.sleep(30) 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_09(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,17 +44,17 @@ def test_01_09(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("List Now")') sb.type("#reservePrice", "0.0001") diff --git a/MULTI_FLOWS/tc0110.py b/MULTI_FLOWS/tc0110.py index b2f1d71..84f343e 100644 --- a/MULTI_FLOWS/tc0110.py +++ b/MULTI_FLOWS/tc0110.py @@ -44,23 +44,23 @@ def test_01_10(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click(".paper") sb.click('p:contains("inventory")') sb.click(".three-dots") sb.click('button:contains("See listings")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_10() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0111.py b/MULTI_FLOWS/tc0111.py index f641ef6..65e7194 100644 --- a/MULTI_FLOWS/tc0111.py +++ b/MULTI_FLOWS/tc0111.py @@ -8,7 +8,7 @@ def test_01_11(): 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(15) + sb.sleep(30) 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_11(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,17 +44,17 @@ def test_01_11(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click(".three-dots") sb.click('button:contains("See listings")') diff --git a/MULTI_FLOWS/tc0112.py b/MULTI_FLOWS/tc0112.py index ec0af5c..32ff960 100644 --- a/MULTI_FLOWS/tc0112.py +++ b/MULTI_FLOWS/tc0112.py @@ -8,7 +8,7 @@ def test_01_12(): 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/17" - sb.sleep(15) + sb.sleep(30) 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_12(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,25 +44,25 @@ def test_01_12(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) - sb.sleep(15) + sb.sleep(30) sb.click('button:contains("Reject")') #Confirm - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_12() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0113.py b/MULTI_FLOWS/tc0113.py index c321003..f6aa62c 100644 --- a/MULTI_FLOWS/tc0113.py +++ b/MULTI_FLOWS/tc0113.py @@ -8,7 +8,7 @@ def test_01_13(): 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/17" - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,21 +44,21 @@ def test_01_13(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button:contains("Buy now")') sb.click('button:contains("Buy with crypto")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm sb.sleep(30) diff --git a/MULTI_FLOWS/tc0114.py b/MULTI_FLOWS/tc0114.py index 02b2eee..6a52045 100644 --- a/MULTI_FLOWS/tc0114.py +++ b/MULTI_FLOWS/tc0114.py @@ -8,7 +8,7 @@ def test_01_14(): 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/18" - sb.sleep(15) + sb.sleep(30) 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(): sb.click('button:contains("Got it")') sb.click('button:contains("Next")') sb.click('button:contains("Done")') - sb.sleep(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,17 +44,17 @@ def test_01_14(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click(".three-dots") sb.click('button:contains("See listings")') diff --git a/MULTI_FLOWS/tc0115.py b/MULTI_FLOWS/tc0115.py index c013809..ccf30c6 100644 --- a/MULTI_FLOWS/tc0115.py +++ b/MULTI_FLOWS/tc0115.py @@ -8,7 +8,7 @@ def test_01_15(): 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/18" - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,17 +44,17 @@ def test_01_15(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click(".three-dots") sb.click('button:contains("See listings")') diff --git a/MULTI_FLOWS/tc0116.py b/MULTI_FLOWS/tc0116.py index a63e259..727d9a4 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(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,23 +44,23 @@ def test_01_16(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click(".three-dots") sb.click('button:contains("Burn")') sb.type("#quantity", "1") sb.click('button:contains("Cancel")') #Confirm - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm sb.sleep(30) diff --git a/MULTI_FLOWS/tc0117.py b/MULTI_FLOWS/tc0117.py index 9bf3359..1efa1f4 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(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.click('button[data-testid="network-display"]') sb.click('input[type="checkbox"]') sb.click('p:contains("Sepolia")') @@ -44,23 +44,23 @@ def test_01_17(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Burn")') sb.type('input#quantity', '1') sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm sb.sleep(30) diff --git a/MULTI_FLOWS/tc0118.py b/MULTI_FLOWS/tc0118.py index f259e77..daa712b 100644 --- a/MULTI_FLOWS/tc0118.py +++ b/MULTI_FLOWS/tc0118.py @@ -44,26 +44,26 @@ def test_01_18(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Burn")') sb.type('input#quantity', '1') sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #confirm -> Reject - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_18() \ No newline at end of file diff --git a/MULTI_FLOWS/tc0119.py b/MULTI_FLOWS/tc0119.py index 0ca35f0..4b0fd24 100644 --- a/MULTI_FLOWS/tc0119.py +++ b/MULTI_FLOWS/tc0119.py @@ -44,21 +44,21 @@ def test_01_19(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') print(sb.is_text_visible("Burn")) - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_19() diff --git a/MULTI_FLOWS/tc0120.py b/MULTI_FLOWS/tc0120.py index 8714412..5956da0 100644 --- a/MULTI_FLOWS/tc0120.py +++ b/MULTI_FLOWS/tc0120.py @@ -44,22 +44,22 @@ def test_01_20(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Burn")') sb.click('span:contains("Cancel")') - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_20() diff --git a/MULTI_FLOWS/tc0121.py b/MULTI_FLOWS/tc0121.py index 2cffc8d..1858fcf 100644 --- a/MULTI_FLOWS/tc0121.py +++ b/MULTI_FLOWS/tc0121.py @@ -44,21 +44,21 @@ def test_01_21(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') print(sb.is_text_visible("Burn")) - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_21() diff --git a/MULTI_FLOWS/tc0122.py b/MULTI_FLOWS/tc0122.py index aea03c4..a03bf10 100644 --- a/MULTI_FLOWS/tc0122.py +++ b/MULTI_FLOWS/tc0122.py @@ -44,17 +44,17 @@ def test_01_22(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Transfer")') @@ -62,10 +62,10 @@ def test_01_22(): sb.click('span:contains("@eternertyy")') sb.type('input#quantity', "1") sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') # Confirm -> Reject - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_22() diff --git a/MULTI_FLOWS/tc0123.py b/MULTI_FLOWS/tc0123.py index bf7e2ab..8452358 100644 --- a/MULTI_FLOWS/tc0123.py +++ b/MULTI_FLOWS/tc0123.py @@ -44,17 +44,17 @@ def test_01_23(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Transfer")') @@ -62,7 +62,7 @@ def test_01_23(): sb.click('span:contains("@eternertyy")') sb.type('input#quantity', "1") sb.click('span:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm -> Reject sb.sleep(30) diff --git a/MULTI_FLOWS/tc0124.py b/MULTI_FLOWS/tc0124.py index 6d4240e..d869e78 100644 --- a/MULTI_FLOWS/tc0124.py +++ b/MULTI_FLOWS/tc0124.py @@ -44,17 +44,17 @@ def tc_01_24(url): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Transfer")') @@ -65,7 +65,7 @@ def tc_01_24(url): sb.sleep(7) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm -> Reject - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": tc_01_24("https://development.arttaca.io/nft/test-multi2/16") \ No newline at end of file diff --git a/MULTI_FLOWS/tc0125.py b/MULTI_FLOWS/tc0125.py index cf7e444..bbf09cb 100644 --- a/MULTI_FLOWS/tc0125.py +++ b/MULTI_FLOWS/tc0125.py @@ -44,21 +44,21 @@ def test_01_25(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') print(sb.is_text_visible("Transfer")) - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_25() diff --git a/MULTI_FLOWS/tc0126.py b/MULTI_FLOWS/tc0126.py index bad538d..f2572a1 100644 --- a/MULTI_FLOWS/tc0126.py +++ b/MULTI_FLOWS/tc0126.py @@ -44,17 +44,17 @@ def test_01_26(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('div.ActionButtons__ButtonBox-sc-1bj8kp4-1.dZzVJr') sb.click('button:contains("Transfer")') @@ -65,7 +65,7 @@ def test_01_26(): sb.sleep(7) sb.switch_to_window(4) sb.click('button:contains("Reject")') #Confirm -> Reject - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_26("https://development.arttaca.io/nft/test-multi2/16") \ No newline at end of file diff --git a/MULTI_FLOWS/tc0127.py b/MULTI_FLOWS/tc0127.py index db78d2f..645dbee 100644 --- a/MULTI_FLOWS/tc0127.py +++ b/MULTI_FLOWS/tc0127.py @@ -44,20 +44,20 @@ def test_01_27(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Next")') sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) sb.click('button.css-hnz0pg') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') - sb.sleep(15) + sb.sleep(30) sb.switch_to_window(3) print(sb.is_text_visible("Transfer")) - sb.sleep(15) + sb.sleep(30) if __name__ == "__main__": test_01_27("https://development.arttaca.io/nft/test-multi2/15") \ No newline at end of file diff --git a/MULTI_FLOWS/test_01_03.py b/MULTI_FLOWS/test_01_03.py index eb446b7..6e7e990 100644 --- a/MULTI_FLOWS/test_01_03.py +++ b/MULTI_FLOWS/test_01_03.py @@ -43,14 +43,14 @@ def test_01_03(): sb.click('button:contains("Connect")') sb.click('span:contains("Connect a Wallet")') sb.click('button:contains("MetaMask")') - sb.sleep(15) + sb.sleep(30) 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(15) + sb.sleep(30) sb.switch_to_window(4) sb.click('button:contains("Confirm")') sb.switch_to_window(3)