from bok_choy.page_object import PageObject
from regression.pages.studio import LOGIN_BASE_URL


class TermsOfService(PageObject):
    """
    Terms of Service page
    """
    url = LOGIN_BASE_URL + '/edx-terms-service'

    def is_browser_on_page(self):
        return "Please read these Terms of Service" in self.q(
            css='.field-page-body'
        ).text[0]

from bok_choy.page_object import PageObject
from regression.pages.studio import LOGIN_BASE_URL


class TermsOfService(PageObject):
    """
    Terms of Service page
    """
    url = LOGIN_BASE_URL + '/edx-terms-service'

    def is_browser_on_page(self):
        return "Please read these Terms of Service" in self.q(
            css='.content-section'
        ).text[0]

Fix target css for TOS page
Fix target css for TOS page

  from bok_choy.page_object import PageObject
  from regression.pages.studio import LOGIN_BASE_URL
  
  
  class TermsOfService(PageObject):
      """
      Terms of Service page
      """
      url = LOGIN_BASE_URL + '/edx-terms-service'
  
      def is_browser_on_page(self):
          return "Please read these Terms of Service" in self.q(
-             css='.field-page-body'
+             css='.content-section'
          ).text[0]
  
Fix target css for TOS page
## Code Before:
from bok_choy.page_object import PageObject
from regression.pages.studio import LOGIN_BASE_URL


class TermsOfService(PageObject):
    """
    Terms of Service page
    """
    url = LOGIN_BASE_URL + '/edx-terms-service'

    def is_browser_on_page(self):
        return "Please read these Terms of Service" in self.q(
            css='.field-page-body'
        ).text[0]

## Instruction:
Fix target css for TOS page
## Code After:
from bok_choy.page_object import PageObject
from regression.pages.studio import LOGIN_BASE_URL


class TermsOfService(PageObject):
    """
    Terms of Service page
    """
    url = LOGIN_BASE_URL + '/edx-terms-service'

    def is_browser_on_page(self):
        return "Please read these Terms of Service" in self.q(
            css='.content-section'
        ).text[0]
