Skip to content

Commit

Permalink
Update project creation tests to use new search dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
malchua committed Nov 8, 2024
1 parent d58d3d2 commit ff06d28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/system/projects_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def setup

within %(div[data-controller="slugify"][data-controller-connected="true"]) do
fill_in 'Name', with: new_project_name
fill_in I18n.t('projects.new.select_namespace'), with: 'USR'
click_on 'INXT_USR_AAAAAAAAAA'
click_on I18n.t(:'projects.new.submit')
end
assert_selector 'h1', text: new_project_name
Expand All @@ -36,6 +38,8 @@ def setup

within %(div[data-controller="slugify"][data-controller-connected="true"]) do
fill_in I18n.t(:'activerecord.attributes.namespaces/project_namespace.name'), with: project_name
fill_in I18n.t('projects.new.select_namespace'), with: 'USR'
click_on 'INXT_USR_AAAAAAAAAA'
assert_equal 'testtest',
find_field(I18n.t(:'activerecord.attributes.namespaces/project_namespace.path')).value
click_on I18n.t(:'projects.new.submit')
Expand All @@ -53,6 +57,8 @@ def setup

within %(div[data-controller="slugify"][data-controller-connected="true"]) do
fill_in 'Name', with: project_name
fill_in I18n.t('projects.new.select_namespace'), with: 'USR'
click_on 'INXT_USR_AAAAAAAAAA'
fill_in 'Path', with: project_path
click_on I18n.t(:'projects.new.submit')
end
Expand All @@ -67,6 +73,8 @@ def setup

within %(div[data-controller="slugify"][data-controller-connected="true"]) do
fill_in 'Name', with: project2.name
fill_in I18n.t('projects.new.select_namespace'), with: 'USR'
click_on 'INXT_USR_AAAAAAAAAA'
click_on I18n.t(:'projects.new.submit')
end

Expand All @@ -81,6 +89,8 @@ def setup

within %(div[data-controller="slugify"][data-controller-connected="true"]) do
fill_in 'Name', with: project_name
fill_in I18n.t('projects.new.select_namespace'), with: 'USR'
click_on 'INXT_USR_AAAAAAAAAA'
fill_in 'Description', with: project_description
click_on I18n.t(:'projects.new.submit')
end
Expand All @@ -96,6 +106,8 @@ def setup

within %(div[data-controller="slugify"][data-controller-connected="true"]) do
fill_in 'Name', with: project_name
fill_in I18n.t('projects.new.select_namespace'), with: 'USR'
click_on 'INXT_USR_AAAAAAAAAA'
fill_in 'Path', with: project_path
click_on I18n.t(:'projects.new.submit')
end
Expand Down

0 comments on commit ff06d28

Please sign in to comment.