Skip to content
Snippets Groups Projects

Tests for Heptapod 0.14 / GitLab 12.10

Merged Georges Racinet requested to merge topic/default/gitlab-12-10 into branch/default
3 files
+ 44
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 13
1
@@ -849,8 +849,20 @@ class Project(object):
assert 'GitLab' in driver.title
assert 'New Project' in driver.title
elem = driver.find_element_by_name('project[path]')
# the project path (slug) attribute is derived automatically from
# its (human readable) name. The names given in these tests all
# transform identically into paths.
# In GitLab 12.10 the converse is true: if only the path is given,
# the name is derived from it with some prettyfication (capitalization,
# spaces). Therefore it is better for our needs to provide the name
# only.
elem = driver.find_element_by_name('project[name]')
elem.send_keys(project_name)
# If we wanted later on to make sure the path is the intended
# one, we'd have to clear the `project[path]` field first, instead
# of *adding* path after what was just prefilled due to
# the setting of `project[name]`
elem = driver.find_element_by_xpath('//input[@type="submit" '
'and @value="Create project"]')
elem.click()
Loading