From f5ea8baa5b33f1933048ae4a4f833031d7cf7a28 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 20 Nov 2024 11:11:41 +1300 Subject: [PATCH] test: comment out mobile ui tests, fix otp email --- .github/workflows/ui-tests.yml | 50 +++++++++++++-------------- sample/Tests/src/fetch_otp.py | 4 +-- sample/Tests/test/test_mac_helpers.py | 2 +- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index 3f97c934..feca9d71 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -69,9 +69,9 @@ jobs: - targetPlatform: StandaloneWindows64 runs-on: [self-hosted, windows] test_script: pytest -xs test/test_windows.py::WindowsTest - - targetPlatform: Android - runs-on: [ self-hosted, macOS ] - test_script: browserstack-sdk pytest -s ./test/test_android.py --browserstack.config "browserstack.android.yml" + # - targetPlatform: Android + # runs-on: [ self-hosted, macOS ] + # test_script: browserstack-sdk pytest -s ./test/test_android.py --browserstack.config "browserstack.android.yml" concurrency: group: test-${{ matrix.targetPlatform }} runs-on: ${{ matrix.runs-on }} @@ -107,26 +107,26 @@ jobs: BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} working-directory: sample/Tests run: ${{ matrix.test_script }} - test-ios: - name: Run iOS UI tests 🧪 - runs-on: [ self-hosted, macOS ] - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - name: build iOS app - working-directory: sample - run: ./build_ios.sh - - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - name: Install dependencies - run: pip install -r "sample/Tests/requirements.txt" - - name: Run UI tests - env: - MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }} - BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} - BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} - working-directory: sample/Tests - run: browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml" + # test-ios: + # name: Run iOS UI tests 🧪 + # runs-on: [ self-hosted, macOS ] + # steps: + # - uses: actions/checkout@v3 + # with: + # lfs: true + # - name: build iOS app + # working-directory: sample + # run: ./build_ios.sh + # - uses: actions/setup-python@v4 + # with: + # python-version: "3.10" + # - name: Install dependencies + # run: pip install -r "sample/Tests/requirements.txt" + # - name: Run UI tests + # env: + # MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }} + # BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} + # BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + # working-directory: sample/Tests + # run: browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml" \ No newline at end of file diff --git a/sample/Tests/src/fetch_otp.py b/sample/Tests/src/fetch_otp.py index 2cce2725..1a8459ba 100644 --- a/sample/Tests/src/fetch_otp.py +++ b/sample/Tests/src/fetch_otp.py @@ -3,8 +3,8 @@ from mailslurp_client.api import InboxControllerApi, WaitForControllerApi import re -INBOX_ID = "a1369a61-9149-4499-a75e-610523e2baa7" -EMAIL = "a1369a61-9149-4499-a75e-610523e2baa7@mailslurp.net" +INBOX_ID = "26b067b8-ef3a-4655-955a-19f157b35b6e" +EMAIL = "26b067b8-ef3a-4655-955a-19f157b35b6e@mailslurp.net" def get_mailslurp_client(): configuration = mailslurp_client.Configuration() diff --git a/sample/Tests/test/test_mac_helpers.py b/sample/Tests/test/test_mac_helpers.py index ab0570e2..532edca7 100644 --- a/sample/Tests/test/test_mac_helpers.py +++ b/sample/Tests/test/test_mac_helpers.py @@ -59,7 +59,7 @@ def login(): if code: print(f"Successfully fetched OTP: {code}") else: - print("Failed to fetch OTP from Gmail") + print("Failed to fetch OTP from MailSlurp") driver.quit() print("Find OTP input...")