Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved conflicts for previously raised PR #220

Open
wants to merge 5 commits into
base: QA-2857-automation-formplayer-tests-automation
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/formplayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
branches: [ master ]
repository_dispatch:
types: [ deploy_success ]

workflow_dispatch:
inputs:
environment:
Expand All @@ -21,11 +20,6 @@ on:
options:
- staging


concurrency:
group: tests-on-formplayer-${{ github.ref }}
cancel-in-progress: true

jobs:
set_matrix:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
from Formplayer.testPages.app_preview.login_as_app_preview_page import LoginAsAppPreviewPage
from Formplayer.testPages.basic_test_app.basic_test_app_preview import BasicTestAppPreview
from Formplayer.testPages.basic_test_app.basic_test_web_apps import BasicTestWebApps
from Formplayer.testPages.webapps.login_as_page import LoginAsPage
from Formplayer.userInputs.user_inputs import UserData


def test_case_20_maps_web_apps(driver, settings):
login = LoginAsPage(driver, settings)
login.open_webapps_menu()
login.login_as_user(UserData.app_preview_mobile_worker)
basic = BasicTestWebApps(driver)
login.open_basic_tests_app(UserData.basic_tests_app['tests_app'])
basic.open_form(UserData.form_specific_tests_app['case_list'], UserData.form_specific_tests_app['form_name'])
basic.maps_record_location()


def test_case_21_maps_app_preview(driver, settings):
app_preview = LoginAsAppPreviewPage(driver, settings)
basic = BasicTestAppPreview(driver)
login = LoginAsAppPreviewPage(driver, settings)
app_preview.open_view_app_preview(UserData.basic_tests_app['tests_app'])
login.login_as_user(UserData.app_preview_mobile_worker)
basic.turn_off_one_question_per_screen()
basic.open_form(UserData.form_specific_tests_app['case_list'], UserData.form_specific_tests_app['form_name'])
basic.maps_record_location()


def test_case_26_sub_menu_web_apps(driver, settings):
login = LoginAsPage(driver, settings)
login.open_webapps_menu()
login.login_as_user(UserData.app_preview_mobile_worker)
basic = BasicTestWebApps(driver)
login.open_basic_tests_app(UserData.basic_tests_app['tests_app'])
basic.sub_menus()


def test_case_27_sub_menu_app_preview(driver, settings):
app_preview = LoginAsAppPreviewPage(driver, settings)
basic = BasicTestAppPreview(driver)
login = LoginAsAppPreviewPage(driver, settings)
app_preview.open_view_app_preview(UserData.basic_tests_app['tests_app'])
login.login_as_user(UserData.app_preview_mobile_worker)
basic.turn_off_one_question_per_screen()
basic.sub_menus()


def test_case_28_multimedia_app_logo_and_menu_and_form_multimedia_web_apps(driver, settings):
login = LoginAsPage(driver,settings)
login.open_webapps_menu()
basic = BasicTestWebApps(driver)
basic.multimedia_logo()
basic.multimedia_forms_menus()


def test_case_29_menu_and_form_multimedia_app_preview(driver, settings):
app_preview = LoginAsAppPreviewPage(driver, settings)
basic = BasicTestAppPreview(driver)
app_preview.open_view_app_preview(UserData.multimedia_app['tests_app'])
basic.multimedia_forms_menus()


def test_case_30_multimedia_form_nav_web_apps(driver, settings):
login = LoginAsPage(driver,settings)
login.open_webapps_menu()
login.login_as_user(UserData.app_preview_mobile_worker)
basic = BasicTestWebApps(driver)
login.open_basic_tests_app(UserData.multimedia_app['tests_app'])
basic.multimedia_form_navigation()


def test_case_31_multimedia_form_nav_app_preview(driver, settings):
app_preview = LoginAsAppPreviewPage(driver, settings)
basic = BasicTestAppPreview(driver)
login = LoginAsAppPreviewPage(driver, settings)
app_preview.open_view_app_preview(UserData.multimedia_app['tests_app'])
login.login_as_user(UserData.app_preview_mobile_worker)
basic.turn_off_one_question_per_screen()
basic.multimedia_form_navigation()


def test_case_32_custom_badge_web_apps(driver, settings):
login = LoginAsPage(driver,settings)
login.open_webapps_menu()
login.login_as_user(UserData.app_preview_mobile_worker)
basic = BasicTestWebApps(driver)
login.open_basic_tests_app(UserData.basic_tests_app['tests_app'])
basic.custom_badge()


def test_case_33_custom_badge_app_preview(driver, settings):
app_preview = LoginAsAppPreviewPage(driver, settings)
basic = BasicTestAppPreview(driver)
app_preview.open_view_app_preview(UserData.basic_tests_app['tests_app'])
basic.custom_badge()
Loading