mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
fix failing tests in calendars
This commit is contained in:
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
<%=
|
||||
render Primer::OpenProject::SubHeader.new do |subheader|
|
||||
subheader.with_action_component do
|
||||
subheader.with_action_component(data: { "test-selector": "add-calendar-button"}) do
|
||||
render Calendar::AddButtonComponent.new(current_project: @project)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -80,7 +80,7 @@ RSpec.describe "Work package calendars", :js do
|
||||
expect(page).to have_text "There is currently nothing to display."
|
||||
|
||||
# Open a new calendar from there
|
||||
find(".toolbar-item a", text: "Calendar").click
|
||||
find('[data-test-selector="add-calendar-button"]', text: "Calendar").click
|
||||
|
||||
loading_indicator_saveguard
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ module Pages
|
||||
end
|
||||
|
||||
def click_on_create_button
|
||||
within ".toolbar-items" do
|
||||
within '[data-test-selector="add-calendar-button"]' do
|
||||
click_link "Calendar"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user