Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

adapt wiki specs

ulferts36887e015e46
diff --git a/modules/meeting/spec/features/meetings_attachments_spec.rb b/modules/meeting/spec/features/meetings_attachments_spec.rb
index a8de9154c1a..c3625d68a90 100644
--- a/modules/meeting/spec/features/meetings_attachments_spec.rb
+++ b/modules/meeting/spec/features/meetings_attachments_spec.rb
@@ -47,7 +47,7 @@ describe 'Add an attachment to a meeting (agenda)', js: true do
click_on "Save"
- content = find("div.meeting_content.meeting_agenda")
+ content = find('[data-qa-selector="op-meeting--meeting_agenda"]')
expect(content).to have_selector('img')
expect(content).to have_content('Some image caption')
diff --git a/modules/meeting/spec/features/meetings_close_spec.rb b/modules/meeting/spec/features/meetings_close_spec.rb
index 148820500e3..b33bc265c20 100644
--- a/modules/meeting/spec/features/meetings_close_spec.rb
+++ b/modules/meeting/spec/features/meetings_close_spec.rb
@@ -73,7 +73,7 @@ describe 'Meetings close' do
expect(page).to have_selector('.op-tab-row--link_selected', text: 'MINUTES')
# Copies the text
- expect(page).to have_selector('#meeting_minutes-text', text: 'asdf')
+ expect(page).to have_selector('#tab-content-minutes', text: 'asdf')
# Go back to agenda, expect we can open it again
SeleniumHubWaiter.wait
diff --git a/modules/meeting/spec/features/meetings_locking_spec.rb b/modules/meeting/spec/features/meetings_locking_spec.rb
index db6243698c5..44ace8e5866 100644
--- a/modules/meeting/spec/features/meetings_locking_spec.rb
+++ b/modules/meeting/spec/features/meetings_locking_spec.rb
@@ -33,18 +33,28 @@ describe 'Meetings locking', js: true do
let(:user) { create(:admin) }
let!(:meeting) { create(:meeting) }
let!(:agenda) { create(:meeting_agenda, meeting:) }
+ let(:agenda_field) do
+ TextEditorField.new(page,
+ '',
+ selector: '[data-qa-selector="op-meeting--meeting_agenda"]')
+ end
+
+ current_user { user }
before do
login_as(user)
- visit meeting_path(meeting)
end
it 'shows an error when trying to update a meeting update while editing' do
+ visit meeting_path(meeting)
+
# Edit agenda
within '#tab-content-agenda' do
find('.button--edit-agenda').click
+ agenda_field.set_value('Some new text')
+
SeleniumHubWaiter.wait
agenda.text = 'blabla'
agenda.save!
@@ -53,6 +63,7 @@ describe 'Meetings locking', js: true do
end
expect(page).to have_text 'Information has been updated by at least one other user in the meantime.'
- expect(page).to have_selector '#edit-meeting_agenda'
+
+ agenda_field.expect_value('Some new text')
end
end