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

No blank cv/french view #991

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
18 changes: 18 additions & 0 deletions airgun/entities/contentview_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ def publish(self, entity_name, values=None):
view.versions.table.wait_displayed()
return view.versions.table.read()

def read_french_lang_cv(self):
"""Navigates to main CV page, when system is set to French, and reads table"""
view = self.navigate_to(self, 'French')
self.browser.plugin.ensure_page_safe(timeout='5s')
view.wait_displayed()
return view.table.read()


@navigator.register(NewContentViewEntity, 'All')
class ShowAllContentViewsScreen(NavigateStep):
Expand All @@ -57,6 +64,17 @@ def step(self, *args, **kwargs):
self.view.menu.select('Content', 'Lifecycle', 'Content Views')


@navigator.register(NewContentViewEntity, 'French')
sambible marked this conversation as resolved.
Show resolved Hide resolved
class ShowAllContentViewsScreenFrench(NavigateStep):
"""Navigate to All Content Views screen ( in French )"""

VIEW = ContentViewTableView

@retry_navigation
def step(self, *args, **kwargs):
self.view.menu.select('Contenu', 'Lifecycle', 'Content Views')
sambible marked this conversation as resolved.
Show resolved Hide resolved


@navigator.register(NewContentViewEntity, 'New')
class CreateContentView(NavigateStep):
"""Navigate to Create content view."""
Expand Down
Loading