Skip to content

Fit upstream saas registration flow

TianLu请求将fit-upstream-saas-registration-flow合并到main-jh

Try to fix saas registration flow on upstream

If not override

On jh side, we will redirect to customerdot with success

https://jihulab.com/gitlab-cn/gitlab/-/blame/main-jh/ee/spec/support/helpers/saas_registration_helpers.rb#L509

allow_next_instance_of(GitlabSubscriptions::CreateService) do |instance|
   allow(instance).to receive(:execute).and_return({ success: true, data: 'foo' })
end

iShot_2023-06-09_08.38.27

Override

This will redirect to expect url.

allow_next_instance_of(GitlabSubscriptions::CreateService) do |instance|
      allow(instance).to receive(:execute).and_return({ success: true, data: nil })
    end

iShot_2023-06-09_08.36.54

Other way

Skip the feature test, because this is not jh purchase flow.

/cc @dexterdeng

TianLu 编辑于

合并请求报告

加载中