Skip to content
代码片段 群组 项目
未验证 提交 bd72d666 编辑于 作者: Roy Liu's avatar Roy Liu 提交者: GitLab
浏览文件

Follow-up from "Add new duo pro discover page"

上级 ad19e0bb
No related branches found
No related tags found
无相关合并请求
......@@ -61,7 +61,6 @@ def discover_duo_pro_hand_raise_lead_data(namespace)
label: 'duo_pro_active_trial' # label needs to be dynamic for upcoming expired widget navigation
}.to_json,
button_attributes: {
'data-testid': 'discover-duo-pro-hand-raise-lead-button',
category: 'secondary',
variant: 'confirm'
}.to_json
......
......@@ -22,17 +22,9 @@
visit group_add_ons_discover_duo_pro_path(group)
end
context 'when user interacts with hand raise lead and submits' do
it 'renders and submits the top of the page instance' do
all_by_testid('discover-duo-pro-hand-raise-lead-button').first.click
it 'renders and submits when user interacts with hand raise lead trigger' do
find_button("Contact sales").click
fill_in_and_submit_hand_raise_lead(user, group, glm_content: 'discover-duo-pro')
end
it 'renders and submits the bottom of the page instance' do
all_by_testid('discover-duo-pro-hand-raise-lead-button').last.click
fill_in_and_submit_hand_raise_lead(user, group, glm_content: 'discover-duo-pro')
end
fill_in_and_submit_hand_raise_lead(user, group, glm_content: 'discover-duo-pro')
end
end
......@@ -103,7 +103,6 @@
label: 'duo_pro_active_trial'
}.to_json,
button_attributes: {
'data-testid': 'discover-duo-pro-hand-raise-lead-button',
category: 'secondary',
variant: 'confirm'
}.to_json
......
......@@ -61,7 +61,7 @@
it { is_expected.to be_falsey }
end
context 'when licensed feature `subscriptions_trials` is not available' do
context 'when the `subscriptions_trials` feature is not available' do
before do
stub_saas_features(subscriptions_trials: false)
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册