Fix selector for form wrapper

This commit is contained in:
Kushal Pandya 2017-04-07 02:24:45 +05:30
parent 7d17fcea84
commit 3dc8c3127b
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ RSpec.shared_examples "protected tags > access control > CE" do
set_protected_tag_name('master')
within('.new_protected_tag') do
within('.js-new-protected-tag') do
allowed_to_create_button = find(".js-allowed-to-create")
unless allowed_to_create_button.text == access_type_name
@ -31,7 +31,7 @@ RSpec.shared_examples "protected tags > access control > CE" do
within(".protected-tags-list") do
find(".js-allowed-to-create").click
within('.js-allowed-to-create-container') do
expect(first("li")).to have_content("Roles")
click_on access_type_name