Commit f628bfb9 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '244933-remove-weight-quick-actions' into 'master'

Add weight quick actions specs for incidents

Closes #244933

See merge request gitlab-org/gitlab!41902
parents 2f236a2f 1166e667
......@@ -887,6 +887,26 @@ RSpec.describe QuickActions::InterpretService do
end
end
context 'issuable weights not supported by type' do
let_it_be(:incident) { create(:incident, project: project) }
before do
stub_licensed_features(issue_weights: true)
end
it 'does not recognise /weight X' do
_, updates = service.execute('/weight 5', incident)
expect(updates).to be_empty
end
it 'does not recognise /clear_weight' do
_, updates = service.execute('/clear_weight', incident)
expect(updates).to be_empty
end
end
shared_examples 'empty command' do
it 'populates {} if content contains an unsupported command' do
_, updates = service.execute(content, issuable)
......
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