Fix cypress tests
This commit is contained in:
parent
c8a18592d2
commit
85a0ba1d25
|
|
@ -5,13 +5,21 @@ describe("MediaLibrary", () => {
|
||||||
cy.manageCommand("cypress_reset");
|
cy.manageCommand("cypress_reset");
|
||||||
|
|
||||||
login("admin", "test");
|
login("admin", "test");
|
||||||
cy.visit("/course/test-lehrgang");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should be accessible", () => {
|
// skipped as long the MainNavigation is not finished
|
||||||
|
it.skip("should be accessible via link in header", () => {
|
||||||
|
cy.visit("/course/test-lehrgang");
|
||||||
cy.get('[data-cy="medialibrary-link"]').click();
|
cy.get('[data-cy="medialibrary-link"]').click();
|
||||||
cy.get('[data-cy="Handlungsfelder-link"]').click();
|
cy.get('[data-cy="Handlungsfelder-link"]').click();
|
||||||
cy.get('[data-cy="Fahrzeug-link"]').click();
|
cy.get('[data-cy="Fahrzeug-link"]').click();
|
||||||
cy.get('[data-cy="hf-title"]').should("contain", "Fahrzeug");
|
cy.get('[data-cy="hf-title"]').should("contain", "Fahrzeug");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should be accessible via direct url", () => {
|
||||||
|
cy.visit("/media/test-lehrgang-media");
|
||||||
|
cy.get('[data-cy="Handlungsfelder-link"]').click();
|
||||||
|
cy.get('[data-cy="Fahrzeug-link"]').click();
|
||||||
|
cy.get('[data-cy="hf-title"]').should("contain", "Fahrzeug");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -113,8 +113,6 @@ class TestBlockFactory(wagtail_factories.StructBlockFactory):
|
||||||
|
|
||||||
|
|
||||||
class FeedbackBlockFactory(wagtail_factories.StructBlockFactory):
|
class FeedbackBlockFactory(wagtail_factories.StructBlockFactory):
|
||||||
description = "Beispiel Feedback"
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = FeedbackBlock
|
model = FeedbackBlock
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue