Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhung9630 committed Sep 19, 2024
1 parent f55b177 commit b3507cf
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 44 deletions.
1 change: 0 additions & 1 deletion FIAT_PAYMENT_STAGE1/tc0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def test_01_01():
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(30)
pass

if __name__ == "__main__":
Expand Down
1 change: 0 additions & 1 deletion FIAT_PAYMENT_STAGE1/tc0102.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def test_01_02():
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(30)
pass

if __name__ == "__main__":
Expand Down
1 change: 0 additions & 1 deletion FIAT_PAYMENT_STAGE1/tc0106.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def test_01_06():
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(30)
pass

if __name__ == "__main__":
Expand Down
6 changes: 3 additions & 3 deletions FIAT_PAYMENT_STAGE1/tc0107.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import seleniumbase
import time
import os
def test_01_07(url):
def test_01_07():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/vietvb22/1"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -60,8 +61,7 @@ def test_01_07(url):
sb.click('button:contains("Buy with crypto")')
sb.sleep(7)
sb.switch_to_window(4)
sb.click('button:contains("Confirm")')
sb.sleep(60)
sb.click('button:contains("Reject")')

if __name__ == "__main__":
test_01_07("https://development.arttaca.io/nft/vietvb22/1")
Expand Down
1 change: 0 additions & 1 deletion FIAT_PAYMENT_STAGE1/tc0108.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def test_01_08():
sb.sleep(7)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(60)

if __name__ == "__main__":
test_01_08("https://development.arttaca.io/nft/datng4/1")
Expand Down
1 change: 0 additions & 1 deletion FIAT_PAYMENT_STAGE1/tc0109.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def test_01_09():
sb.sleep(15)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(60)

if __name__ == "__main__":
test_01_09("https://development.arttaca.io/nft/uyenoianhyeuem/1")
Expand Down
5 changes: 1 addition & 4 deletions FIAT_PAYMENT_STAGE1/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def test_01_10():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/uyenoianhyeuem/1"
url = "https://development.arttaca.io/nft/multi-test-fiat/4"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -63,9 +63,6 @@ def test_01_10():
sb.sleep(7)
sb.switch_to_window(4)
sb.click('button:contains("Reject")')
sb.sleep(7)
sb.switch_to_window(3)
sb.sleep(60)

if __name__ == "__main__":
test_01_10("https://development.arttaca.io/nft/uyenoianhyeuem/1")
Expand Down
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_01(url):
def test_01_01():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test0704/1"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -64,8 +65,6 @@ def tc_01_01(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_01("https://development.arttaca.io/nft/test0704/1")
test_01_01("https://development.arttaca.io/nft/test0704/1")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0102.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_02(url):
def test_01_02():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test0704/1"
sb.sleep(7)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -64,8 +65,6 @@ def tc_01_02(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_02("https://development.arttaca.io/nft/test0704/1")
test_01_02("https://development.arttaca.io/nft/test0704/1")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0105.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_05(url):
def test_01_05():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test0704/1"
sb.sleep(7)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -61,8 +62,6 @@ def tc_01_05(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_05("https://development.arttaca.io/nft/test0704/1")
test_01_05("https://development.arttaca.io/nft/test0704/1")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0106.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_06(url):
def test_01_06():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-collection/6"
sb.sleep(7)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -63,8 +64,6 @@ def tc_01_06(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_06("https://development.arttaca.io/nft/test-muti/3")
test_01_06("https://development.arttaca.io/nft/test-muti/3")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0107.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_07(url):
def test_01_07():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -64,8 +65,6 @@ def tc_01_07(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_07("https://development.arttaca.io/nft/test-multi2/14")
test_01_07("https://development.arttaca.io/nft/test-multi2/14")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0108.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_08(url):
def test_01_08():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -64,8 +65,6 @@ def tc_01_08(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_08("https://development.arttaca.io/nft/test-multi2/14")
test_01_08("https://development.arttaca.io/nft/test-multi2/14")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0109.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_08(url):
def test_01_09():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/multi-test-fiat/4"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -64,8 +65,6 @@ def tc_01_08(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_08("https://development.arttaca.io/nft/multi-test-fiat/4")
test_01_09("https://development.arttaca.io/nft/multi-test-fiat/4")
7 changes: 3 additions & 4 deletions FIAT_PAYMENT_STAGE2/tc0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import time
import os

def tc_01_07(url):
def test_01_10():
with SB(
extension_dir=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'temp', 'metamask-chrome'))
) as sb:
url = "https://development.arttaca.io/nft/test-multi2/14"
sb.sleep(5)
sb.switch_to_window(1)
sb.click('input[data-testid="onboarding-terms-checkbox"]')
Expand Down Expand Up @@ -64,8 +65,6 @@ def tc_01_07(url):
sb.type('input#cardExpiry',"12/56")
sb.type('input#cardCvc',"321")
sb.type('input#billingName',"Mai Anh Duong")
sb.click('button[data-testid="hosted-payment-submit-button"]')
sb.sleep(60)

if __name__ == "__main__":
tc_01_07("https://development.arttaca.io/nft/test-multi2/14")
test_01_10("https://development.arttaca.io/nft/test-multi2/14")

0 comments on commit b3507cf

Please sign in to comment.