Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
ce219ed2
Commit
ce219ed2
authored
Dec 07, 2016
by
stu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed acceptance_tests to e2e for oep-8 compliance
parent
78eaab3c
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
66 additions
and
66 deletions
+66
-66
.gitignore
+3
-3
Makefile
+6
-6
e2e/__init__.py
+0
-0
e2e/api.py
+1
-1
e2e/config.py
+1
-1
e2e/constants.py
+0
-0
e2e/expected_conditions.py
+0
-0
e2e/mixins.py
+7
-7
e2e/pages/__init__.py
+0
-0
e2e/pages/basket.py
+2
-2
e2e/pages/coupons.py
+4
-4
e2e/pages/ecommerce.py
+2
-2
e2e/pages/lms.py
+2
-2
e2e/pages/marketing.py
+1
-1
e2e/requirements.txt
+1
-1
e2e/test_auth.py
+3
-3
e2e/test_bulk_purchase.py
+3
-3
e2e/test_coupon_admin.py
+4
-4
e2e/test_coupon_checkout.py
+7
-7
e2e/test_login_enrollment.py
+2
-2
e2e/test_payment.py
+9
-9
e2e/test_profed_enrollment.py
+4
-4
e2e/utils.py
+0
-0
ecommerce/extensions/dashboard/refunds/tests/test_acceptance.py
+3
-3
requirements/monitoring/requirements.txt
+1
-1
No files found.
.gitignore
View file @
ce219ed2
...
@@ -40,7 +40,7 @@ htmlcov
...
@@ -40,7 +40,7 @@ htmlcov
.tox
.tox
nosetests.xml
nosetests.xml
unittests.xml
unittests.xml
acceptance_tests
/xunit.xml
e2e
/xunit.xml
### Internationalization artifacts
### Internationalization artifacts
*.mo
*.mo
...
@@ -67,8 +67,8 @@ diff_*.html
...
@@ -67,8 +67,8 @@ diff_*.html
report
report
edx_ecommerce.log
edx_ecommerce.log
venv
venv
acceptance_tests
.*.log
e2e
.*.log
acceptance_tests
.*.png
e2e
.*.png
# Override config files
# Override config files
override.cfg
override.cfg
...
...
Makefile
View file @
ce219ed2
...
@@ -16,7 +16,7 @@ help:
...
@@ -16,7 +16,7 @@ help:
@
echo
' make quality run PEP8 and Pylint '
@
echo
' make quality run PEP8 and Pylint '
@
echo
' make validate Run Python and JavaScript unit tests and linting '
@
echo
' make validate Run Python and JavaScript unit tests and linting '
@
echo
' make html_coverage generate and view HTML coverage report '
@
echo
' make html_coverage generate and view HTML coverage report '
@
echo
' make
accept run acceptance tests
'
@
echo
' make
e2e run end to end acceptance tests
'
@
echo
' make extract_translations extract strings to be translated '
@
echo
' make extract_translations extract strings to be translated '
@
echo
' make dummy_translations generate dummy translations '
@
echo
' make dummy_translations generate dummy translations '
@
echo
' make compile_translations generate translation files '
@
echo
' make compile_translations generate translation files '
...
@@ -68,8 +68,8 @@ fast_validate_python: clean
...
@@ -68,8 +68,8 @@ fast_validate_python: clean
make quality
make quality
quality
:
quality
:
pep8
--config
=
.pep8 ecommerce
acceptance_tests
pep8
--config
=
.pep8 ecommerce
e2e
pylint
--rcfile
=
pylintrc ecommerce
acceptance_tests
pylint
--rcfile
=
pylintrc ecommerce
e2e
validate
:
validate_python validate_js
validate
:
validate_python validate_js
...
@@ -90,8 +90,8 @@ fast_diff_coverage:
...
@@ -90,8 +90,8 @@ fast_diff_coverage:
coverage xml
coverage xml
diff-cover coverage.xml
--compare-branch
=
$(DIFF_COVER_BASE_BRANCH)
diff-cover coverage.xml
--compare-branch
=
$(DIFF_COVER_BASE_BRANCH)
accept
:
e2e
:
nosetests
--with-ignore-docstrings
-v
acceptance_tests
--with-xunit
--xunit-file
=
acceptance_tests
/xunit.xml
nosetests
--with-ignore-docstrings
-v
e2e
--with-xunit
--xunit-file
=
e2e
/xunit.xml
extract_translations
:
extract_translations
:
python manage.py makemessages
-l
en
-v1
-d
django
--ignore
=
"docs/*"
--ignore
=
"src/*"
--ignore
=
"i18n/*"
--ignore
=
"assets/*"
--ignore
=
"node_modules/*"
--ignore
=
"ecommerce/static/bower_components/*"
--ignore
=
"ecommerce/static/build/*"
python manage.py makemessages
-l
en
-v1
-d
django
--ignore
=
"docs/*"
--ignore
=
"src/*"
--ignore
=
"i18n/*"
--ignore
=
"assets/*"
--ignore
=
"node_modules/*"
--ignore
=
"ecommerce/static/bower_components/*"
--ignore
=
"ecommerce/static/build/*"
...
@@ -120,6 +120,6 @@ detect_changed_source_translations:
...
@@ -120,6 +120,6 @@ detect_changed_source_translations:
validate_translations
:
fake_translations detect_changed_source_translations
validate_translations
:
fake_translations detect_changed_source_translations
# Targets in a Makefile which do not produce an output file with the same name as the target name
# Targets in a Makefile which do not produce an output file with the same name as the target name
.PHONY
:
help requirements migrate serve clean validate_python quality validate_js validate html_coverage
accept
\
.PHONY
:
help requirements migrate serve clean validate_python quality validate_js validate html_coverage
e2e
\
extract_translations dummy_translations compile_translations fake_translations pull_translations
\
extract_translations dummy_translations compile_translations fake_translations pull_translations
\
push_translations update_translations fast_validate_python clean_static
push_translations update_translations fast_validate_python clean_static
acceptance_tests
/__init__.py
→
e2e
/__init__.py
View file @
ce219ed2
File moved
acceptance_tests
/api.py
→
e2e
/api.py
View file @
ce219ed2
import
requests
import
requests
from
requests.auth
import
AuthBase
from
requests.auth
import
AuthBase
from
acceptance_tests
.config
import
ACCESS_TOKEN
,
ENROLLMENT_API_URL
from
e2e
.config
import
ACCESS_TOKEN
,
ENROLLMENT_API_URL
class
BearerAuth
(
AuthBase
):
class
BearerAuth
(
AuthBase
):
...
...
acceptance_tests
/config.py
→
e2e
/config.py
View file @
ce219ed2
import
os
import
os
from
acceptance_tests
.utils
import
str2bool
from
e2e
.utils
import
str2bool
ACCESS_TOKEN
=
os
.
environ
.
get
(
'ACCESS_TOKEN'
)
ACCESS_TOKEN
=
os
.
environ
.
get
(
'ACCESS_TOKEN'
)
...
...
acceptance_tests
/constants.py
→
e2e
/constants.py
View file @
ce219ed2
File moved
acceptance_tests
/expected_conditions.py
→
e2e
/expected_conditions.py
View file @
ce219ed2
File moved
acceptance_tests
/mixins.py
→
e2e
/mixins.py
View file @
ce219ed2
...
@@ -9,8 +9,8 @@ from selenium.webdriver.support import expected_conditions as EC
...
@@ -9,8 +9,8 @@ from selenium.webdriver.support import expected_conditions as EC
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support.ui
import
WebDriverWait
from
acceptance_tests
.api
import
EnrollmentApiClient
from
e2e
.api
import
EnrollmentApiClient
from
acceptance_tests
.config
import
(
from
e2e
.config
import
(
LMS_AUTO_AUTH
,
LMS_AUTO_AUTH
,
ECOMMERCE_URL_ROOT
,
ECOMMERCE_URL_ROOT
,
LMS_PASSWORD
,
LMS_PASSWORD
,
...
@@ -26,10 +26,10 @@ from acceptance_tests.config import (
...
@@ -26,10 +26,10 @@ from acceptance_tests.config import (
PAYPAL_EMAIL
,
PAYPAL_EMAIL
,
LMS_HTTPS
LMS_HTTPS
)
)
from
acceptance_tests
.expected_conditions
import
input_provided
from
e2e
.expected_conditions
import
input_provided
from
acceptance_tests
.pages
import
submit_lms_login_form
from
e2e
.pages
import
submit_lms_login_form
from
acceptance_tests
.pages.ecommerce
import
EcommerceLoginPage
from
e2e
.pages.ecommerce
import
EcommerceLoginPage
from
acceptance_tests
.pages.lms
import
LMSLoginPage
,
LMSDashboardPage
,
LMSRegistrationPage
,
LMSLogoutPage
from
e2e
.pages.lms
import
LMSLoginPage
,
LMSDashboardPage
,
LMSRegistrationPage
,
LMSLogoutPage
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
@@ -375,7 +375,7 @@ class CouponMixin(EcommerceApiMixin):
...
@@ -375,7 +375,7 @@ class CouponMixin(EcommerceApiMixin):
def
get_and_delete_coupons
(
self
,
partial_title
):
def
get_and_delete_coupons
(
self
,
partial_title
):
"""
"""
Get all coupons created in the
acceptanc
e tests and delete those
Get all coupons created in the
e2
e tests and delete those
and all associated stock records and vouchers.
and all associated stock records and vouchers.
"""
"""
coupons
=
self
.
ecommerce_api_client
.
coupons
.
get
(
title
=
partial_title
)[
'results'
]
coupons
=
self
.
ecommerce_api_client
.
coupons
.
get
(
title
=
partial_title
)[
'results'
]
...
...
acceptance_tests
/pages/__init__.py
→
e2e
/pages/__init__.py
View file @
ce219ed2
File moved
acceptance_tests
/pages/basket.py
→
e2e
/pages/basket.py
View file @
ce219ed2
import
re
import
re
from
acceptance_tests
.config
import
BULK_PURCHASE_SKU
from
e2e
.config
import
BULK_PURCHASE_SKU
from
acceptance_tests
.pages.ecommerce
import
EcommerceAppPage
from
e2e
.pages.ecommerce
import
EcommerceAppPage
class
BasketPage
(
EcommerceAppPage
):
class
BasketPage
(
EcommerceAppPage
):
...
...
acceptance_tests
/pages/coupons.py
→
e2e
/pages/coupons.py
View file @
ce219ed2
...
@@ -8,10 +8,10 @@ from selenium.webdriver.support import expected_conditions as EC
...
@@ -8,10 +8,10 @@ from selenium.webdriver.support import expected_conditions as EC
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support.ui
import
WebDriverWait
from
acceptance_tests
.config
import
ECOMMERCE_URL_ROOT
,
VERIFIED_COURSE_ID
from
e2e
.config
import
ECOMMERCE_URL_ROOT
,
VERIFIED_COURSE_ID
from
acceptance_tests
.constants
import
CODE
,
DEFAULT_END_DATE
,
DEFAULT_START_DATE
from
e2e
.constants
import
CODE
,
DEFAULT_END_DATE
,
DEFAULT_START_DATE
from
acceptance_tests
.expected_conditions
import
option_selected
from
e2e
.expected_conditions
import
option_selected
from
acceptance_tests
.pages.ecommerce
import
EcommerceAppPage
from
e2e
.pages.ecommerce
import
EcommerceAppPage
def
_get_coupon_name
(
is_discount
):
def
_get_coupon_name
(
is_discount
):
...
...
acceptance_tests
/pages/ecommerce.py
→
e2e
/pages/ecommerce.py
View file @
ce219ed2
from
bok_choy.page_object
import
PageObject
from
bok_choy.page_object
import
PageObject
from
acceptance_tests
.config
import
ECOMMERCE_URL_ROOT
from
e2e
.config
import
ECOMMERCE_URL_ROOT
from
acceptance_tests
.pages.lms
import
LMSLoginPage
from
e2e
.pages.lms
import
LMSLoginPage
class
EcommerceAppPage
(
PageObject
):
# pylint: disable=abstract-method
class
EcommerceAppPage
(
PageObject
):
# pylint: disable=abstract-method
...
...
acceptance_tests
/pages/lms.py
→
e2e
/pages/lms.py
View file @
ce219ed2
...
@@ -7,8 +7,8 @@ from bok_choy.promise import EmptyPromise
...
@@ -7,8 +7,8 @@ from bok_choy.promise import EmptyPromise
from
selenium.common.exceptions
import
NoSuchElementException
,
WebDriverException
from
selenium.common.exceptions
import
NoSuchElementException
,
WebDriverException
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.select
import
Select
from
acceptance_tests
.config
import
LMS_URL_ROOT
,
BASIC_AUTH_USERNAME
,
BASIC_AUTH_PASSWORD
,
MARKETING_URL_ROOT
from
e2e
.config
import
LMS_URL_ROOT
,
BASIC_AUTH_USERNAME
,
BASIC_AUTH_PASSWORD
,
MARKETING_URL_ROOT
from
acceptance_tests
.pages
import
submit_lms_login_form
from
e2e
.pages
import
submit_lms_login_form
class
LMSPage
(
PageObject
):
# pylint: disable=abstract-method
class
LMSPage
(
PageObject
):
# pylint: disable=abstract-method
...
...
acceptance_tests
/pages/marketing.py
→
e2e
/pages/marketing.py
View file @
ce219ed2
from
bok_choy.page_object
import
PageObject
from
bok_choy.page_object
import
PageObject
import
requests
import
requests
from
acceptance_tests
.config
import
MARKETING_URL_ROOT
,
BASIC_AUTH_USERNAME
,
BASIC_AUTH_PASSWORD
from
e2e
.config
import
MARKETING_URL_ROOT
,
BASIC_AUTH_USERNAME
,
BASIC_AUTH_PASSWORD
class
MarketingCourseAboutPage
(
PageObject
):
class
MarketingCourseAboutPage
(
PageObject
):
...
...
acceptance_tests
/requirements.txt
→
e2e
/requirements.txt
View file @
ce219ed2
# Packages required to run
acceptanc
e tests
# Packages required to run
e2
e tests
bok-choy==0.5.0
bok-choy==0.5.0
ddt==1.0.1
ddt==1.0.1
django-nose==1.4.2
django-nose==1.4.2
...
...
acceptance_tests
/test_auth.py
→
e2e
/test_auth.py
View file @
ce219ed2
...
@@ -3,9 +3,9 @@ from unittest import skipUnless
...
@@ -3,9 +3,9 @@ from unittest import skipUnless
from
bok_choy.promise
import
EmptyPromise
from
bok_choy.promise
import
EmptyPromise
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.web_app_test
import
WebAppTest
from
acceptance_tests
.config
import
ENABLE_SSO_TESTS
,
MARKETING_URL_ROOT
,
LMS_URL_ROOT
from
e2e
.config
import
ENABLE_SSO_TESTS
,
MARKETING_URL_ROOT
,
LMS_URL_ROOT
from
acceptance_tests
.mixins
import
LogistrationMixin
,
OttoAuthenticationMixin
,
LMSLogoutMixin
from
e2e
.mixins
import
LogistrationMixin
,
OttoAuthenticationMixin
,
LMSLogoutMixin
from
acceptance_tests
.pages.ecommerce
import
EcommerceDashboardHomePage
from
e2e
.pages.ecommerce
import
EcommerceDashboardHomePage
@skipUnless
(
ENABLE_SSO_TESTS
,
'Single sign-on tests are not enabled.'
)
@skipUnless
(
ENABLE_SSO_TESTS
,
'Single sign-on tests are not enabled.'
)
...
...
acceptance_tests
/test_bulk_purchase.py
→
e2e
/test_bulk_purchase.py
View file @
ce219ed2
...
@@ -2,15 +2,15 @@ from unittest import skipUnless
...
@@ -2,15 +2,15 @@ from unittest import skipUnless
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.web_app_test
import
WebAppTest
from
acceptance_tests
.config
import
BULK_PURCHASE_SKU
,
LMS_EMAIL
,
LMS_PASSWORD
from
e2e
.config
import
BULK_PURCHASE_SKU
,
LMS_EMAIL
,
LMS_PASSWORD
from
acceptance_tests
.mixins
import
(
from
e2e
.mixins
import
(
EcommerceApiMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
EnrollmentApiMixin
,
LogistrationMixin
,
LogistrationMixin
,
PaymentMixin
PaymentMixin
)
)
from
acceptance_tests
.pages.basket
import
BasketPage
,
BasketAddProductPage
from
e2e
.pages.basket
import
BasketPage
,
BasketAddProductPage
@skipUnless
(
BULK_PURCHASE_SKU
,
'Bulk Purchase SKU not provided, skipping Bulk Purchase tests.'
)
@skipUnless
(
BULK_PURCHASE_SKU
,
'Bulk Purchase SKU not provided, skipping Bulk Purchase tests.'
)
...
...
acceptance_tests
/test_coupon_admin.py
→
e2e
/test_coupon_admin.py
View file @
ce219ed2
...
@@ -3,10 +3,10 @@ from unittest import skipUnless
...
@@ -3,10 +3,10 @@ from unittest import skipUnless
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.web_app_test
import
WebAppTest
from
acceptance_tests
.config
import
ENABLE_COUPON_ADMIN_TESTS
from
e2e
.config
import
ENABLE_COUPON_ADMIN_TESTS
from
acceptance_tests
.constants
import
DEFAULT_END_DATE
,
DEFAULT_START_DATE
from
e2e
.constants
import
DEFAULT_END_DATE
,
DEFAULT_START_DATE
from
acceptance_tests
.mixins
import
CouponMixin
,
LogistrationMixin
from
e2e
.mixins
import
CouponMixin
,
LogistrationMixin
from
acceptance_tests
.pages.coupons
import
CouponsCreatePage
,
CouponsDetailsPage
,
CouponsListPage
from
e2e
.pages.coupons
import
CouponsCreatePage
,
CouponsDetailsPage
,
CouponsListPage
@skipUnless
(
ENABLE_COUPON_ADMIN_TESTS
,
'Coupon admin tests are disabled.'
)
@skipUnless
(
ENABLE_COUPON_ADMIN_TESTS
,
'Coupon admin tests are disabled.'
)
...
...
acceptance_tests
/test_coupon_checkout.py
→
e2e
/test_coupon_checkout.py
View file @
ce219ed2
...
@@ -3,13 +3,13 @@ from unittest import skipUnless
...
@@ -3,13 +3,13 @@ from unittest import skipUnless
import
ddt
import
ddt
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.web_app_test
import
WebAppTest
from
acceptance_tests
.config
import
VERIFIED_COURSE_ID
,
ENABLE_CYBERSOURCE_TESTS
from
e2e
.config
import
VERIFIED_COURSE_ID
,
ENABLE_CYBERSOURCE_TESTS
from
acceptance_tests
.constants
import
CODE
,
CYBERSOURCE_DATA1
,
CYBERSOURCE_DATA2
from
e2e
.constants
import
CODE
,
CYBERSOURCE_DATA1
,
CYBERSOURCE_DATA2
from
acceptance_tests
.mixins
import
(
CouponMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
from
e2e
.mixins
import
(
CouponMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
LogistrationMixin
,
UnenrollmentMixin
,
PaymentMixin
)
LogistrationMixin
,
UnenrollmentMixin
,
PaymentMixin
)
from
acceptance_tests
.pages.basket
import
BasketPage
from
e2e
.pages.basket
import
BasketPage
from
acceptance_tests
.pages.coupons
import
CouponsCreatePage
,
CouponsDetailsPage
,
CouponsListPage
,
RedeemVoucherPage
from
e2e
.pages.coupons
import
CouponsCreatePage
,
CouponsDetailsPage
,
CouponsListPage
,
RedeemVoucherPage
from
acceptance_tests
.pages.ecommerce
import
EcommerceDashboardHomePage
from
e2e
.pages.ecommerce
import
EcommerceDashboardHomePage
@ddt.ddt
@ddt.ddt
...
...
acceptance_tests
/test_login_enrollment.py
→
e2e
/test_login_enrollment.py
View file @
ce219ed2
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.web_app_test
import
WebAppTest
from
acceptance_tests
.config
import
HONOR_COURSE_ID
from
e2e
.config
import
HONOR_COURSE_ID
from
acceptance_tests
.mixins
import
LogistrationMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
UnenrollmentMixin
from
e2e
.mixins
import
LogistrationMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
UnenrollmentMixin
class
LoginEnrollmentTests
(
UnenrollmentMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
LogistrationMixin
,
WebAppTest
):
class
LoginEnrollmentTests
(
UnenrollmentMixin
,
EcommerceApiMixin
,
EnrollmentApiMixin
,
LogistrationMixin
,
WebAppTest
):
...
...
acceptance_tests
/test_payment.py
→
e2e
/test_payment.py
View file @
ce219ed2
...
@@ -6,15 +6,15 @@ from selenium.webdriver.common.by import By
...
@@ -6,15 +6,15 @@ from selenium.webdriver.common.by import By
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support.ui
import
WebDriverWait
from
acceptance_tests
.config
import
(
VERIFIED_COURSE_ID
,
MARKETING_URL_ROOT
,
from
e2e
.config
import
(
VERIFIED_COURSE_ID
,
MARKETING_URL_ROOT
,
PAYPAL_PASSWORD
,
PAYPAL_EMAIL
,
ENABLE_CYBERSOURCE_TESTS
,
PAYPAL_PASSWORD
,
PAYPAL_EMAIL
,
ENABLE_CYBERSOURCE_TESTS
,
BULK_PURCHASE_SKU
)
BULK_PURCHASE_SKU
)
from
acceptance_tests
.constants
import
CYBERSOURCE_DATA1
,
CYBERSOURCE_DATA2
from
e2e
.constants
import
CYBERSOURCE_DATA1
,
CYBERSOURCE_DATA2
from
acceptance_tests
.mixins
import
(
LogistrationMixin
,
EnrollmentApiMixin
,
EcommerceApiMixin
,
from
e2e
.mixins
import
(
LogistrationMixin
,
EnrollmentApiMixin
,
EcommerceApiMixin
,
PaymentMixin
,
UnenrollmentMixin
)
PaymentMixin
,
UnenrollmentMixin
)
from
acceptance_tests
.pages.lms
import
LMSCourseModePage
from
e2e
.pages.lms
import
LMSCourseModePage
from
acceptance_tests
.pages.marketing
import
MarketingCourseAboutPage
from
e2e
.pages.marketing
import
MarketingCourseAboutPage
from
acceptance_tests
.pages.basket
import
BasketAddProductPage
from
e2e
.pages.basket
import
BasketAddProductPage
@ddt.ddt
@ddt.ddt
...
...
acceptance_tests
/test_profed_enrollment.py
→
e2e
/test_profed_enrollment.py
View file @
ce219ed2
...
@@ -5,10 +5,10 @@ from selenium.webdriver.common.by import By
...
@@ -5,10 +5,10 @@ from selenium.webdriver.common.by import By
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support.ui
import
WebDriverWait
from
acceptance_tests
.config
import
PROFESSIONAL_COURSE_ID
,
MARKETING_URL_ROOT
from
e2e
.config
import
PROFESSIONAL_COURSE_ID
,
MARKETING_URL_ROOT
from
acceptance_tests
.mixins
import
LogistrationMixin
,
EnrollmentApiMixin
from
e2e
.mixins
import
LogistrationMixin
,
EnrollmentApiMixin
from
acceptance_tests
.pages.lms
import
LMSCourseModePage
from
e2e
.pages.lms
import
LMSCourseModePage
from
acceptance_tests
.pages.marketing
import
MarketingCourseAboutPage
from
e2e
.pages.marketing
import
MarketingCourseAboutPage
@skipUnless
(
PROFESSIONAL_COURSE_ID
,
'Professional education tests are not enabled.'
)
@skipUnless
(
PROFESSIONAL_COURSE_ID
,
'Professional education tests are not enabled.'
)
...
...
acceptance_tests
/utils.py
→
e2e
/utils.py
View file @
ce219ed2
File moved
ecommerce/extensions/dashboard/refunds/tests/test_acceptance.py
View file @
ce219ed2
...
@@ -83,7 +83,7 @@ class RefundAcceptanceTestMixin(RefundTestMixin):
...
@@ -83,7 +83,7 @@ class RefundAcceptanceTestMixin(RefundTestMixin):
self
.
assertIn
(
alert_class
,
classes
)
self
.
assertIn
(
alert_class
,
classes
)
self
.
assertEqual
(
alert
.
find_element_by_css_selector
(
'.message'
)
.
text
,
text
)
self
.
assertEqual
(
alert
.
find_element_by_css_selector
(
'.message'
)
.
text
,
text
)
@skip
(
"Requires refund processing endpoint. Move to
acceptance_tests
and re-enable under ticket XCOM-342."
)
@skip
(
"Requires refund processing endpoint. Move to
e2e
and re-enable under ticket XCOM-342."
)
@ddt.data
(
True
,
False
)
@ddt.data
(
True
,
False
)
def
test_processing_success
(
self
,
approve
):
def
test_processing_success
(
self
,
approve
):
"""
"""
...
@@ -119,7 +119,7 @@ class RefundAcceptanceTestMixin(RefundTestMixin):
...
@@ -119,7 +119,7 @@ class RefundAcceptanceTestMixin(RefundTestMixin):
# Verify that an alert is displayed.
# Verify that an alert is displayed.
self
.
assert_alert_displayed
(
'alert-success'
,
'Refund {} has been processed.'
.
format
(
self
.
refund
.
id
))
self
.
assert_alert_displayed
(
'alert-success'
,
'Refund {} has been processed.'
.
format
(
self
.
refund
.
id
))
@skip
(
"This test is flaky in Travis. Move to
acceptance_tests
and re-enable under ticket XCOM-342."
)
@skip
(
"This test is flaky in Travis. Move to
e2e
and re-enable under ticket XCOM-342."
)
@ddt.data
(
True
,
False
)
@ddt.data
(
True
,
False
)
def
test_processing_failure
(
self
,
approve
):
def
test_processing_failure
(
self
,
approve
):
"""
"""
...
@@ -164,7 +164,7 @@ class RefundAcceptanceTestMixin(RefundTestMixin):
...
@@ -164,7 +164,7 @@ class RefundAcceptanceTestMixin(RefundTestMixin):
'Please try again, or contact the E-Commerce Development Team.'
.
format
(
refund_id
=
refund_id
)
'Please try again, or contact the E-Commerce Development Team.'
.
format
(
refund_id
=
refund_id
)
)
)
@skip
(
"This test is flaky in Travis. Move to
acceptance_tests
and re-enable under ticket XCOM-342."
)
@skip
(
"This test is flaky in Travis. Move to
e2e
and re-enable under ticket XCOM-342."
)
@ddt.data
(
True
,
False
)
@ddt.data
(
True
,
False
)
def
test_cancel_action
(
self
,
approve
):
def
test_cancel_action
(
self
,
approve
):
"""
"""
...
...
requirements/monitoring/requirements.txt
View file @
ce219ed2
...
@@ -10,4 +10,4 @@
...
@@ -10,4 +10,4 @@
-r ../optional.txt
-r ../optional.txt
-r ../production.txt
-r ../production.txt
-r ../test.txt
-r ../test.txt
-r ../../
acceptance_tests
/requirements.txt
-r ../../
e2e
/requirements.txt
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment