Re-add failing tests

This commit is contained in:
Ramon Wenger 2022-10-05 20:12:19 +02:00
parent 1772e7ec4a
commit 51cfef5e40
2 changed files with 105 additions and 105 deletions

View File

@ -4,7 +4,7 @@ describe('Duplicate Content Block', () => {
beforeEach(() => { beforeEach(() => {
cy.setup(); cy.setup();
}); });
it.skip('works', () => { it('works', () => {
cy.visit('/fron'); cy.visit('/fron');
const operations = { const operations = {

View File

@ -79,107 +79,107 @@ class DuplicateContentBlockTestCase(SkillboxTestCase):
self.assertTrue('Kopie' in content_blocks[0].get('title')) self.assertTrue('Kopie' in content_blocks[0].get('title'))
self.assertTrue('Kopie' not in content_blocks[1].get('title')) self.assertTrue('Kopie' not in content_blocks[1].get('title'))
# def test_duplicate_non_editable_contents(self): def test_duplicate_non_editable_contents(self):
# # contents__0__text_block__text # contents__0__text_block__text
# nested_form_data({ nested_form_data({
# 'content': streamfield([ 'content': streamfield([
# nested_form_data({ nested_form_data({
# 'text_block': [ 'text_block': [
# ('text', rich_text('Asdf')) ('text', rich_text('Asdf'))
# ] ]
# }) })
# ]) ])
# }) })
#
# contents = [ contents = [
# nested_form_data({ nested_form_data({
# 'text_block': streamfield([ 'text_block': streamfield([
# ('text', 'Asdf') ('text', 'Asdf')
# ]) ])
# }), }),
# # { # {
# # "type": "text_block", # "type": "text_block",
# # "value": { # "value": {
# # "text": "Asdf" # "text": "Asdf"
# # }, # },
# # }, # },
# # { # {
# # "type": "assignment", # "type": "assignment",
# # "value": { # "value": {
# # "title": "Ein Auftragstitel", # "title": "Ein Auftragstitel",
# # "assignment": "Ein Auftrag", # "assignment": "Ein Auftrag",
# # }, # },
# # }, # },
# # { # {
# # "type": "image_block", # "type": "image_block",
# # "value": { # "value": {
# # "path": "/media/original_images/dummy_pZUH02q.jpg" # "path": "/media/original_images/dummy_pZUH02q.jpg"
# # }, # },
# # }, # },
# # { # {
# # "type": "image_url_block", # "type": "image_url_block",
# # "value": { # "value": {
# # "title": "Asdf", # "title": "Asdf",
# # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg" # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
# # }, # },
# # }, # },
# # { # {
# # "type": "link_block", # "type": "link_block",
# # "value": { # "value": {
# # "text": "Asdf", # "text": "Asdf",
# # "url": "https://iterativ.ch" # "url": "https://iterativ.ch"
# # }, # },
# # }, # },
# # { # {
# # "type": "solution", # "type": "solution",
# # "value": { # "value": {
# # "text": "Asdf", # "text": "Asdf",
# # }, # },
# # }, # },
# # { # {
# # "type": "video_block", # "type": "video_block",
# # "value": { # "value": {
# # "url": "https://www.youtube.com/watch?v=QxQBWR7sntI" # "url": "https://www.youtube.com/watch?v=QxQBWR7sntI"
# # }, # },
# # }, # },
# # { # {
# # "type": "document_block", # "type": "document_block",
# # "value": { # "value": {
# # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg" # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
# # }, # },
# # }, # },
# # { # {
# # "type": "infogram_block", # "type": "infogram_block",
# # "value": { # "value": {
# # "id": "4405271e-dbfb-407e-ac19-0a238cde393f", # "id": "4405271e-dbfb-407e-ac19-0a238cde393f",
# # "title": "Gerät Internetnutzung Jungen" # "title": "Gerät Internetnutzung Jungen"
# # }, # },
# # }, # },
# # { # {
# # "type": "thinglink_block", # "type": "thinglink_block",
# # "value": { # "value": {
# # "id": "1314204266449076227" # "id": "1314204266449076227"
# # }, # },
# # }, # },
# # { # {
# # "type": "subtitle", # "type": "subtitle",
# # "value": { # "value": {
# # "text": "Subtitle" # "text": "Subtitle"
# # }, # },
# # }, # },
# # { # {
# # "type": "instruction", # "type": "instruction",
# # "value": { # "value": {
# # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg", # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg",
# # "text": "Instruction", # "text": "Instruction",
# # }, # },
# # }, # },
# # { # {
# # "type": "module_room_slug", # "type": "module_room_slug",
# # "value": { # "value": {
# # "title": "Raum", # "title": "Raum",
# # }, # },
# # }, # },
# ] ]
# self.content_block.contents = contents self.content_block.contents = contents
# self.assertTrue(False) self.assertTrue(False)