Skip to content
代码片段 群组 项目
提交 63554dc1 编辑于 作者: Olena Horal-Koretska's avatar Olena Horal-Koretska
浏览文件

Merge branch 'benjaminking-confirm-danger-update' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -6,7 +6,5 @@ export const CONFIRM_DANGER_MODAL_BUTTON = __('Confirm'); ...@@ -6,7 +6,5 @@ export const CONFIRM_DANGER_MODAL_BUTTON = __('Confirm');
export const CONFIRM_DANGER_WARNING = __( export const CONFIRM_DANGER_WARNING = __(
'This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.', 'This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.',
); );
export const CONFIRM_DANGER_PHRASE_TEXT = __( export const CONFIRM_DANGER_PHRASE_TEXT = __('Please type %{phrase_code} to proceed.');
'Please type %{phrase_code} to proceed or close this modal to cancel.',
);
export const CONFIRM_DANGER_MODAL_CANCEL = __('Cancel'); export const CONFIRM_DANGER_MODAL_CANCEL = __('Cancel');
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
click_button('Transfer ownership') click_button('Transfer ownership')
expect(page).to have_content('This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.') expect(page).to have_content('This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.')
expect(page).to have_content("Please type #{user.username} to proceed or close this modal to cancel.") expect(page).to have_content("Please type #{user.username} to proceed.")
fill_in 'confirm_name_input', with: user.username fill_in 'confirm_name_input', with: user.username
click_button 'Confirm' click_button 'Confirm'
......
...@@ -34334,7 +34334,7 @@ msgstr "" ...@@ -34334,7 +34334,7 @@ msgstr ""
msgid "Please try and refresh the page. If the problem persists please contact support." msgid "Please try and refresh the page. If the problem persists please contact support."
msgstr "" msgstr ""
   
msgid "Please type %{phrase_code} to proceed or close this modal to cancel." msgid "Please type %{phrase_code} to proceed."
msgstr "" msgstr ""
   
msgid "Please use this form to report to the administrator users who create spam issues, comments or behave inappropriately." msgid "Please use this form to report to the administrator users who create spam issues, comments or behave inappropriately."
...@@ -60,9 +60,7 @@ describe('Confirm Danger Modal', () => { ...@@ -60,9 +60,7 @@ describe('Confirm Danger Modal', () => {
}); });
it('renders the correct confirmation phrase', () => { it('renders the correct confirmation phrase', () => {
expect(findConfirmationPhrase().text()).toBe( expect(findConfirmationPhrase().text()).toBe(`Please type ${phrase} to proceed.`);
`Please type ${phrase} to proceed or close this modal to cancel.`,
);
}); });
describe('without injected data', () => { describe('without injected data', () => {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册