Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

chore: remove bok-choy usage #1527

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 0 additions & 25 deletions a11y_tests/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,9 @@
"""


from bok_choy.page_object import PageObject

from acceptance_tests import DASHBOARD_SERVER_URL, TEST_COURSE_ID


class CoursePage(PageObject):
basic_auth_username = None
basic_auth_password = None

def __init__(self, browser, course_id=None):
# Create the path
self.course_id = course_id or TEST_COURSE_ID
path = f'courses/{self.course_id}'

self.server_url = DASHBOARD_SERVER_URL
self.page_url = f'{self.server_url}/{path}'

# Call the constructor and setup the URL
super().__init__(browser)

def is_browser_on_page(self):
return self.browser.current_url == self.page_url

@property
def url(self):
return self.page_url


class CourseEnrollmentDemographicsPage(CoursePage):
demographic = None

Expand Down
42 changes: 0 additions & 42 deletions a11y_tests/test_course_enrollment_demographics_axs.py

This file was deleted.

14 changes: 0 additions & 14 deletions acceptance_tests/mixins.py
feanil marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from unittest import skip

from analyticsclient.client import Client
from bok_choy.promise import EmptyPromise
from selenium.webdriver.common.keys import Keys

from acceptance_tests import (
Expand Down Expand Up @@ -89,19 +88,6 @@ def assertValidFeedbackLink(self, selector):
element = self.page.q(css=selector)
self.assertEqual(element.text[0], DASHBOARD_FEEDBACK_EMAIL)

def fulfill_loading_promise(self, css_selector):
"""
Ensure the info contained by `css_selector` is loaded via AJAX.

Arguments
css_selector (string) -- CSS selector of the parent element that will contain the loading message.
"""

EmptyPromise(
lambda: 'Loading...' not in self.page.q(css=css_selector + ' .loading-container').text,
"Loading finished."
).fulfill()

def assertTable(self, table_selector, columns, download_selector=None):
# Ensure the table is loaded via AJAX
self.fulfill_loading_promise(table_selector)
Expand Down
Loading
Loading