BigW Consortium Gitlab

Commit 050bafaa by Rémy Coutable

Merge branch 'rs-sign-in-poc' into 'master'

Use `sign_in` instead of `login_as` when we're not testing login flow See merge request !10296
parents 30253183 3d61609c
require 'spec_helper' require 'spec_helper'
describe 'Filter issues', js: true, feature: true do describe 'Filter issues', js: true, feature: true do
include Devise::Test::IntegrationHelpers
include FilteredSearchHelpers include FilteredSearchHelpers
include WaitForAjax include WaitForAjax
...@@ -42,16 +43,17 @@ describe 'Filter issues', js: true, feature: true do ...@@ -42,16 +43,17 @@ describe 'Filter issues', js: true, feature: true do
project.team << [user2, :master] project.team << [user2, :master]
group.add_developer(user) group.add_developer(user)
group.add_developer(user2) group.add_developer(user2)
login_as(user)
create(:issue, project: project)
create(:issue, title: "Bug report 1", project: project) sign_in(user)
create(:issue, title: "Bug report 2", project: project)
create(:issue, title: "issue with 'single quotes'", project: project) create(:issue, project: project)
create(:issue, title: "issue with \"double quotes\"", project: project) create(:issue, project: project, title: "Bug report 1")
create(:issue, title: "issue with !@\#{$%^&*()-+", project: project) create(:issue, project: project, title: "Bug report 2")
create(:issue, title: "issue by assignee", project: project, milestone: milestone, author: user, assignee: user) create(:issue, project: project, title: "issue with 'single quotes'")
create(:issue, title: "issue by assignee with searchTerm", project: project, milestone: milestone, author: user, assignee: user) create(:issue, project: project, title: "issue with \"double quotes\"")
create(:issue, project: project, title: "issue with !@\#{$%^&*()-+")
create(:issue, project: project, title: "issue by assignee", milestone: milestone, author: user, assignee: user)
create(:issue, project: project, title: "issue by assignee with searchTerm", milestone: milestone, author: user, assignee: user)
issue = create(:issue, issue = create(:issue,
title: "Bug 2", title: "Bug 2",
......
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