Skip to content

Commit

Permalink
Update sleep in all files
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhung9630 committed Sep 20, 2024
1 parent 3db892f commit 0cd90b0
Show file tree
Hide file tree
Showing 65 changed files with 343 additions and 343 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/multi-flow-part1.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/multi-flow-part2.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
12 changes: 6 additions & 6 deletions EXPIRATION_TIMES_CHANGE/tc0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")')
Expand All @@ -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")')
Expand All @@ -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)
Expand All @@ -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()
16 changes: 8 additions & 8 deletions EXPIRATION_TIMES_CHANGE/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/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")')
Expand All @@ -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")')
Expand All @@ -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()
14 changes: 7 additions & 7 deletions EXPIRATION_TIMES_CHANGE/tc0103.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")')
Expand All @@ -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")')
Expand All @@ -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()
16 changes: 8 additions & 8 deletions EXPIRATION_TIMES_CHANGE/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/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")')
Expand All @@ -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")')
Expand All @@ -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()
16 changes: 8 additions & 8 deletions EXPIRATION_TIMES_CHANGE/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-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")')
Expand All @@ -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")')
Expand All @@ -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()
16 changes: 8 additions & 8 deletions EXPIRATION_TIMES_CHANGE/tc0107.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")')
Expand All @@ -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")')
Expand All @@ -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()
16 changes: 8 additions & 8 deletions EXPIRATION_TIMES_CHANGE/tc0108.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")')
Expand All @@ -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")')
Expand All @@ -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()
Loading

0 comments on commit 0cd90b0

Please sign in to comment.