Integrate UI text strings from doc
STUD-1856 Display "IS VISIBLE TO" when released and published Reword staff lock prompt and notifications Change "View Published Version" to "View Live Version" Change "Unit Tree Location" to "Unit Location in Course" Switch live content warning based on unpublished changes Reword discard changes confirmation prompt Reword unit location tip Add "Edit the name" popup text for sections and subsections Fix popup text for section and subsection titles Add popup text for new section, subsection, and unit buttons Reword popup for View Live button and add tests Reword notification when removing staff lock Update MessageView when has_changes changed Change "Published" to "Published (not yet released)" Change "Unpublished (Staff only)" to "Visible to Staff Only"
This commit is contained in:
@@ -122,7 +122,8 @@ class ContainerPage(PageObject):
|
||||
if not warnings.is_present():
|
||||
return False
|
||||
warning_text = warnings.first.text[0]
|
||||
return warning_text == "This content is live for students. Edit with caution."
|
||||
return (warning_text == "This unit is visible to students. If you edit the unit, you must re-publish it for students to see your changes."
|
||||
or warning_text == "Caution: The last published version of this unit is live. By publishing changes you will change the student experience.")
|
||||
|
||||
@property
|
||||
def publish_action(self):
|
||||
@@ -161,7 +162,7 @@ class ContainerPage(PageObject):
|
||||
|
||||
def view_published_version(self):
|
||||
"""
|
||||
Clicks "View Published Version", which will open the published version of the unit page in the LMS.
|
||||
Clicks "View Live Version", which will open the published version of the unit page in the LMS.
|
||||
|
||||
Switches the browser to the newly opened LMS window.
|
||||
"""
|
||||
|
||||
@@ -379,10 +379,10 @@ class UnitPublishingTest(ContainerBase):
|
||||
"""
|
||||
__test__ = True
|
||||
|
||||
PUBLISHED_STATUS = "Publishing Status\nPublished"
|
||||
PUBLISHED_STATUS = "Publishing Status\nPublished (not yet released)"
|
||||
PUBLISHED_LIVE_STATUS = "Publishing Status\nPublished and Live"
|
||||
DRAFT_STATUS = "Publishing Status\nDraft (Unpublished changes)"
|
||||
LOCKED_STATUS = "Publishing Status\nUnpublished (Staff only)"
|
||||
LOCKED_STATUS = "Publishing Status\nVisible to Staff Only"
|
||||
RELEASE_TITLE_RELEASED = "RELEASED:"
|
||||
RELEASE_TITLE_RELEASE = "RELEASE:"
|
||||
|
||||
@@ -673,11 +673,11 @@ class UnitPublishingTest(ContainerBase):
|
||||
Scenario: The publish title displays correctly for units that are not live
|
||||
Given I have a published unit with no unpublished changes that releases in the future
|
||||
When I go to the unit page in Studio
|
||||
Then the title in the Publish information box is "Published"
|
||||
Then the title in the Publish information box is "Published (not yet released)"
|
||||
And when I add a component to the unit
|
||||
Then the title in the Publish information box is "Draft (Unpublished changes)"
|
||||
And when I click the Publish button
|
||||
Then the title in the Publish information box is "Published"
|
||||
Then the title in the Publish information box is "Published (not yet released)"
|
||||
"""
|
||||
unit = self.go_to_unit_page('Unreleased Section', 'Unreleased Subsection', 'Unreleased Unit')
|
||||
self._verify_publish_title(unit, self.PUBLISHED_STATUS)
|
||||
|
||||
Reference in New Issue
Block a user