Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Sep 11, 2023
1 parent dea6ca4 commit 2ab45f6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions projectroles/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,24 @@ def test_settings_label_icon(self):
).find_element(By.TAG_NAME, 'svg')
self.assertTrue(logo.is_displayed())

def test_submit_button(self):
"""Test rendering of submit button"""
url = reverse(
'projectroles:create', kwargs={'project': self.category.sodar_uuid}
)
self.login_and_redirect(
self.superuser, url, wait_elem=None, wait_loc='ID'
)
element = self.selenium.find_element(
By.CLASS_NAME, 'sodar-pr-btn-submit-once'
)
self.assertEqual(element.text, 'Create')

self.assertTrue(element.is_enabled())
element.click()
# self.assertFalse(element.is_enabled())
# self.assertIsNotNone(element.find_element(By.CLASS_NAME, 'spinner-border'))


class TestProjectUpdateView(TestUIBase):
"""Tests for ProjectUpdateView UI"""
Expand Down

0 comments on commit 2ab45f6

Please sign in to comment.