Re-add failing tests
This commit is contained in:
parent
1772e7ec4a
commit
51cfef5e40
|
|
@ -4,7 +4,7 @@ describe('Duplicate Content Block', () => {
|
|||
beforeEach(() => {
|
||||
cy.setup();
|
||||
});
|
||||
it.skip('works', () => {
|
||||
it('works', () => {
|
||||
cy.visit('/fron');
|
||||
|
||||
const operations = {
|
||||
|
|
|
|||
|
|
@ -79,107 +79,107 @@ class DuplicateContentBlockTestCase(SkillboxTestCase):
|
|||
self.assertTrue('Kopie' in content_blocks[0].get('title'))
|
||||
self.assertTrue('Kopie' not in content_blocks[1].get('title'))
|
||||
|
||||
# def test_duplicate_non_editable_contents(self):
|
||||
# # contents__0__text_block__text
|
||||
# nested_form_data({
|
||||
# 'content': streamfield([
|
||||
# nested_form_data({
|
||||
# 'text_block': [
|
||||
# ('text', rich_text('Asdf'))
|
||||
# ]
|
||||
# })
|
||||
# ])
|
||||
# })
|
||||
#
|
||||
# contents = [
|
||||
# nested_form_data({
|
||||
# 'text_block': streamfield([
|
||||
# ('text', 'Asdf')
|
||||
# ])
|
||||
# }),
|
||||
# # {
|
||||
# # "type": "text_block",
|
||||
# # "value": {
|
||||
# # "text": "Asdf"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "assignment",
|
||||
# # "value": {
|
||||
# # "title": "Ein Auftragstitel",
|
||||
# # "assignment": "Ein Auftrag",
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "image_block",
|
||||
# # "value": {
|
||||
# # "path": "/media/original_images/dummy_pZUH02q.jpg"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "image_url_block",
|
||||
# # "value": {
|
||||
# # "title": "Asdf",
|
||||
# # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "link_block",
|
||||
# # "value": {
|
||||
# # "text": "Asdf",
|
||||
# # "url": "https://iterativ.ch"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "solution",
|
||||
# # "value": {
|
||||
# # "text": "Asdf",
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "video_block",
|
||||
# # "value": {
|
||||
# # "url": "https://www.youtube.com/watch?v=QxQBWR7sntI"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "document_block",
|
||||
# # "value": {
|
||||
# # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "infogram_block",
|
||||
# # "value": {
|
||||
# # "id": "4405271e-dbfb-407e-ac19-0a238cde393f",
|
||||
# # "title": "Gerät Internetnutzung Jungen"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "thinglink_block",
|
||||
# # "value": {
|
||||
# # "id": "1314204266449076227"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "subtitle",
|
||||
# # "value": {
|
||||
# # "text": "Subtitle"
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "instruction",
|
||||
# # "value": {
|
||||
# # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg",
|
||||
# # "text": "Instruction",
|
||||
# # },
|
||||
# # },
|
||||
# # {
|
||||
# # "type": "module_room_slug",
|
||||
# # "value": {
|
||||
# # "title": "Raum",
|
||||
# # },
|
||||
# # },
|
||||
# ]
|
||||
# self.content_block.contents = contents
|
||||
# self.assertTrue(False)
|
||||
def test_duplicate_non_editable_contents(self):
|
||||
# contents__0__text_block__text
|
||||
nested_form_data({
|
||||
'content': streamfield([
|
||||
nested_form_data({
|
||||
'text_block': [
|
||||
('text', rich_text('Asdf'))
|
||||
]
|
||||
})
|
||||
])
|
||||
})
|
||||
|
||||
contents = [
|
||||
nested_form_data({
|
||||
'text_block': streamfield([
|
||||
('text', 'Asdf')
|
||||
])
|
||||
}),
|
||||
# {
|
||||
# "type": "text_block",
|
||||
# "value": {
|
||||
# "text": "Asdf"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "assignment",
|
||||
# "value": {
|
||||
# "title": "Ein Auftragstitel",
|
||||
# "assignment": "Ein Auftrag",
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "image_block",
|
||||
# "value": {
|
||||
# "path": "/media/original_images/dummy_pZUH02q.jpg"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "image_url_block",
|
||||
# "value": {
|
||||
# "title": "Asdf",
|
||||
# "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "link_block",
|
||||
# "value": {
|
||||
# "text": "Asdf",
|
||||
# "url": "https://iterativ.ch"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "solution",
|
||||
# "value": {
|
||||
# "text": "Asdf",
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "video_block",
|
||||
# "value": {
|
||||
# "url": "https://www.youtube.com/watch?v=QxQBWR7sntI"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "document_block",
|
||||
# "value": {
|
||||
# "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "infogram_block",
|
||||
# "value": {
|
||||
# "id": "4405271e-dbfb-407e-ac19-0a238cde393f",
|
||||
# "title": "Gerät Internetnutzung Jungen"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "thinglink_block",
|
||||
# "value": {
|
||||
# "id": "1314204266449076227"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "subtitle",
|
||||
# "value": {
|
||||
# "text": "Subtitle"
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "instruction",
|
||||
# "value": {
|
||||
# "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg",
|
||||
# "text": "Instruction",
|
||||
# },
|
||||
# },
|
||||
# {
|
||||
# "type": "module_room_slug",
|
||||
# "value": {
|
||||
# "title": "Raum",
|
||||
# },
|
||||
# },
|
||||
]
|
||||
self.content_block.contents = contents
|
||||
self.assertTrue(False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue