debian-mirror-gitlab/spec/features/nav/top_nav_tooltip_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
556 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'top nav tooltips', :js do
let_it_be(:user) { create(:user) }
before do
sign_in(user)
visit explore_projects_path
end
2023-01-13 00:05:48 +05:30
it 'clicking new dropdown hides tooltip', :aggregate_failures,
quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/382786' do
2022-07-23 23:45:48 +05:30
btn = '#js-onboarding-new-project-link'
page.find(btn).hover
2022-08-13 15:12:31 +05:30
expect(page).to have_content('Create new...')
2022-07-23 23:45:48 +05:30
page.find(btn).click
2022-08-13 15:12:31 +05:30
expect(page).not_to have_content('Create new...')
2022-07-23 23:45:48 +05:30
end
end