'WikiPageConflictMessage|Someone edited the page the same time you did. Please check out %{wikiLinkStart}the page%{wikiLinkEnd} and make sure your changes will not unintentionally remove theirs.',
),
},
PAGE_RENAME:{
ERROR:'WikiPage::PageRenameError',
MESSAGE:s__('WikiEdit|There is already a page with the same title in that path.'),
'WikiPageConflictMessage|Someone edited the page the same time you did. Please check out %{wikiLinkStart}the page%{wikiLinkEnd} and make sure your changes will not unintentionally remove theirs.')
constERROR='There is already a page with the same title in that path.';
constERROR_WITH_LINK=
'Someone edited the page the same time you did. Please check out %{wikiLinkStart}the page%{wikiLinkEnd} and make sure your changes will not unintentionally remove theirs.';
constPATH='/test';
functioncreateWrapper(propsData={},stubs={}){
wrapper=shallowMount(WikiAlert,{
propsData,
propsData:{wikiPagePath:PATH,...propsData},
stubs,
});
}
...
...
@@ -24,32 +27,15 @@ describe('WikiAlert', () => {
describe('Wiki Alert',()=>{
it('does show an alert when there is an error',()=>{