Skip to content

Commit

Permalink
Sleep longer
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhung9630 committed Sep 19, 2024
1 parent b22bb8b commit 1a564cf
Show file tree
Hide file tree
Showing 43 changed files with 148 additions and 148 deletions.
6 changes: 3 additions & 3 deletions FIAT_PAYMENT_STAGE1/tc0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def test_01_01():
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.switch_to_window(3)
sb.sleep(7)
sb.sleep(15)
sb.sleep(5)
sb.open(url)
sb.click('button:contains("Buy now")')
Expand Down
6 changes: 3 additions & 3 deletions FIAT_PAYMENT_STAGE1/tc0102.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def test_01_02():
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.switch_to_window(3)
sb.sleep(7)
sb.sleep(15)
sb.sleep(5)
sb.open(url)
sb.click('button:contains("Buy now")')
Expand Down
4 changes: 2 additions & 2 deletions FIAT_PAYMENT_STAGE1/tc0105.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def test_01_05():
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.switch_to_window(3)
Expand Down
6 changes: 3 additions & 3 deletions FIAT_PAYMENT_STAGE1/tc0106.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def test_01_06():
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.switch_to_window(3)
sb.sleep(7)
sb.sleep(15)
sb.sleep(5)
sb.open(url)
sb.click('button:contains("Buy now")')
Expand Down
8 changes: 4 additions & 4 deletions FIAT_PAYMENT_STAGE1/tc0107.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ def test_01_07():
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.switch_to_window(3)
sb.sleep(7)
sb.sleep(15)
sb.sleep(5)
sb.open(url)
sb.click('button:contains("Buy now")')
sb.click('button:contains("Buy with crypto")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')

Expand Down
8 changes: 4 additions & 4 deletions FIAT_PAYMENT_STAGE1/tc0108.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ def test_01_08():
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.switch_to_window(3)
sb.sleep(7)
sb.sleep(15)
sb.sleep(5)
sb.open(url)
sb.click('button:contains("Buy now")')
sb.click('button:contains("Buy with crypto")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')

Expand Down
8 changes: 4 additions & 4 deletions FIAT_PAYMENT_STAGE1/tc0109.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ def test_01_09():
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.switch_to_window(3)
sb.sleep(7)
sb.sleep(15)
sb.sleep(5)
sb.open(url)
sb.click('button:contains("Buy now")')
sb.click('button:contains("Buy with crypto")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')

Expand Down
6 changes: 3 additions & 3 deletions FIAT_PAYMENT_STAGE1/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def test_01_10():
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.switch_to_window(3)
Expand All @@ -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(7)
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')

Expand Down
10 changes: 5 additions & 5 deletions FIAT_PAYMENT_STAGE2/tc0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(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("Checkout with card")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_frame('iframe[name="embedded-checkout"]')
sb.type('input#email',"[email protected]")
sb.type('input#cardNumber',"4242 4242 4242 4242")
Expand Down
12 changes: 6 additions & 6 deletions FIAT_PAYMENT_STAGE2/tc0102.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(7)
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand Down Expand Up @@ -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(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("Checkout with card")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_frame('iframe[name="embedded-checkout"]')
sb.type('input#email',"[email protected]")
sb.type('input#cardNumber',"4000 0000 0000 9995")
Expand Down
14 changes: 7 additions & 7 deletions FIAT_PAYMENT_STAGE2/tc0105.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_01_05():
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test0704/1"
sb.sleep(7)
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand Down Expand Up @@ -36,26 +36,26 @@ def test_01_05():
sb.click('button:contains("Next")')
sb.click('button:contains("Done")')
sb.open_new_window()
sb.sleep(7)
sb.sleep(15)
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.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("Checkout with card")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_frame('iframe[name="embedded-checkout"]')
sb.type('input#email',"[email protected]")
sb.type('input#cardNumber',"4242 4242 4242 4242")
Expand Down
12 changes: 6 additions & 6 deletions FIAT_PAYMENT_STAGE2/tc0106.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(7)
sb.sleep(15)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
sb.click('button:contains("Import an existing wallet")')
Expand Down Expand Up @@ -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(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("Checkout with card")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_frame('iframe[name="embedded-checkout"]')
sb.type('input#email',"[email protected]")
sb.type('input#cardNumber',"4242 4242 4242 4242")
Expand Down
10 changes: 5 additions & 5 deletions FIAT_PAYMENT_STAGE2/tc0107.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(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("Checkout with card")')
sb.sleep(7)
sb.sleep(15)
sb.switch_to_frame('iframe[name="embedded-checkout"]')
sb.type('input#email',"[email protected]")
sb.type('input#cardNumber',"4242 4242 4242 4242")
Expand Down
8 changes: 4 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0108.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ def test_01_08():
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("Checkout with card")')
Expand Down
8 changes: 4 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0109.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(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("Checkout with card")')
Expand Down
8 changes: 4 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ def test_01_10():
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("Checkout with card")')
Expand Down
Loading

0 comments on commit 1a564cf

Please sign in to comment.