diff --git a/combo/public/templates/combo/placeholder.html b/combo/public/templates/combo/placeholder.html index 1c6ddf21..71830a13 100644 --- a/combo/public/templates/combo/placeholder.html +++ b/combo/public/templates/combo/placeholder.html @@ -2,7 +2,7 @@ {% if render %} {% for cell in cells %}
no selected_user resp = app.get('/users/foo/', status=200) assert 'XXYY' in resp.text + +def test_cell_slugs(app): + Page.objects.all().delete() + page = Page(title='Home', slug='index', template_name='standard') + page.save() + + TextCell(page=page, placeholder='content', text='Foobar', order=0).save() + TextCell(page=page, placeholder='content', text='Foobar', slug='unique', order=1).save() + TextCell(page=page, placeholder='content', text='Foobar', slug='dup', order=2).save() + TextCell(page=page, placeholder='content', text='Foobar', slug='dup', order=3).save() + + resp = app.get('/', status=200) + assert 'id="unique"' in resp.text + assert 'id="dup"' not in resp.text