Skip to content
代码片段 群组 项目
提交 632c01d0 编辑于 作者: Tom's avatar Tom 提交者: Baodong
浏览文件

Qa fix customerdot e2e tests

上级 12b129b6
No related branches found
No related tags found
无相关合并请求
......@@ -116,11 +116,7 @@ def complete_payment
unionpay.back_to_customer_dot
end
when 'chinapay'
::QA::ThirdPartyPage::Customerdot::Chinapay.perform do |chinapay|
chinapay.choose_card
chinapay.go_to_payment
chinapay.payment_success
end
::QA::ThirdPartyPage::Customerdot::Chinapay.perform(&:payment_success)
end
end
end
......
......@@ -58,7 +58,7 @@ def purchased_storage
if has_css?('span[data-testid=denominator-total]')
find('span[data-testid=denominator-total]').text.split('/').last.match(/\d+\.\d+/)[0].to_f
else
find_element(:"total-storage").text.split('/').last.match(/\d+\.\d+/)[0].to_f
find_element("storage-purchased").text.split('/').last.match(/\d+\.\d+/)[0].to_f
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册