Skip to content

Commit

Permalink
Added entity enabling refresh of lce counts
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 committed Dec 6, 2023
1 parent 365521b commit 44ea5d6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions airgun/entities/capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,21 @@ def complete_sync(self, capsule_name):

self.sync(capsule_name, 'Complete Sync')

def refresh_lce_counts(self, capsule_name, lce_name):
"""
Function that refreshes LCE counts of given capsule
Args:
capsule_name (str): Name of capsule to be refreshed
"""

view = self.navigate_to(self, 'Capsules')
view.table.row(name=capsule_name)['Name'].click()
view = CapsuleDetailsView(self.browser)
view.content.top_content_table.row(Environment=lce_name)[3].widget.item_select(
'Refresh counts'
)


@navigator.register(CapsuleEntity, 'Capsules')
class OpenAcsPage(NavigateStep):
Expand Down

0 comments on commit 44ea5d6

Please sign in to comment.