Commit f1652015 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Projects: adapted to new creation page flow

Instead of three tabs for "blank", "template" and "import",
with "blank" the active one, GitLab 13.7 has a landing page
that makes the choice necessary.
parent 47a283195374
Pipeline #16753 passed with stage
in 20 minutes and 45 seconds
......@@ -17,6 +17,7 @@ from .utils.project import (
from import Group
from .utils.hg import LocalRepo
from .utils.selenium import could_click_element
parametrize = pytest.mark.parametrize
......@@ -373,6 +374,11 @@ def test_external_user_can_create_project(test_group, external_user):
WebDriverWait(webdriver, 10).until(
lambda d: d.find_element_by_xpath(
'//a[@href = "#blank_project"]')))
# The default selected namespace is test_group
# (hoping its id won't change too much with GitLab versions)
default_namespace_id = 'select2-chosen-1'
......@@ -949,6 +949,11 @@ class Project(object):
assert 'GitLab' in driver.title
assert 'New Project' in driver.title
WebDriverWait(driver, 10).until(
lambda d: d.find_element_by_xpath(
'//a[@href = "#blank_project"]')))
# the project path (slug) attribute is derived automatically from
# its (human readable) name. The names given in these tests all
# transform identically into paths.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment