Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Aug 15, 2023
1 parent f27a8f3 commit ff0c26d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions samplesheets/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def setUp(self):
'samplesheets:versions', kwargs={'project': self.project.sodar_uuid}
)

def test_list(self):
def test_render(self):
"""Test UI rendering for list items"""
self.assert_element_exists(
[self.user_contributor], self.url, 'sodar-ss-version-list', True
Expand All @@ -284,7 +284,7 @@ def test_list(self):
self.selenium.find_element(By.CLASS_NAME, 'badge-info')
)

def test_list_no_versions(self):
def test_render_no_versions(self):
"""Test UI rendering for list items with no versions"""
ISATab.objects.filter(
investigation_uuid=self.investigation.sodar_uuid
Expand All @@ -299,8 +299,8 @@ def test_list_no_versions(self):
False,
)

def test_list_buttons(self):
"""Test list button rendering"""
def test_render_dropdown(self):
"""Test sheet version dropdown rendering"""
expected = [
(self.superuser, 1),
(self.user_owner_cat, 1),
Expand All @@ -313,7 +313,7 @@ def test_list_buttons(self):
(self.user_guest, 0),
]
self.assert_element_count(
expected, self.url, 'sodar-ss-version-btn-group', 'class'
expected, self.url, 'sodar-ss-version-dropdown', 'class'
)


Expand Down

0 comments on commit ff0c26d

Please sign in to comment.