test: change lesson sequence
This commit is contained in:
@@ -34,19 +34,16 @@ describe("Course Creation", () => {
|
|||||||
|
|
||||||
// Content
|
// Content
|
||||||
cy.get(".collapse-section.collapsed:first").click();
|
cy.get(".collapse-section.collapsed:first").click();
|
||||||
cy.get("#lesson-content .ce-block").click().type("{enter}");
|
cy.get("#lesson-content .ce-block")
|
||||||
|
.click()
|
||||||
|
.type(
|
||||||
|
"This is an extremely big paragraph that is meant to test the UI. This is a very long paragraph. It contains more than once sentence. Its meant to be this long as this is a UI test. Its unbearably long and I'm not sure why I'm typing this much. I'm just going to keep typing until I feel like its long enough. I think its long enough now. I'm going to stop typing now. {enter}"
|
||||||
|
);
|
||||||
cy.get("#lesson-content .ce-toolbar__plus").click();
|
cy.get("#lesson-content .ce-toolbar__plus").click();
|
||||||
cy.get('#lesson-content [data-item-name="youtube"]').click();
|
cy.get('#lesson-content [data-item-name="youtube"]').click();
|
||||||
cy.get('input[data-fieldname="youtube"]').type("GoDtyItReto");
|
cy.get('input[data-fieldname="youtube"]').type("GoDtyItReto");
|
||||||
cy.button("Insert").click();
|
cy.button("Insert").click();
|
||||||
cy.wait(1000);
|
cy.wait(1000);
|
||||||
|
|
||||||
cy.get("#lesson-content .ce-block:last").click().type("{enter}");
|
|
||||||
cy.get("#lesson-content .ce-block:last")
|
|
||||||
.click()
|
|
||||||
.type(
|
|
||||||
"This is an extremely big paragraph that is meant to test the UI. This is a very long paragraph. It contains more than once sentence. Its meant to be this long as this is a UI test. Its unbearably long and I'm not sure why I'm typing this much. I'm just going to keep typing until I feel like its long enough. I think its long enough now. I'm going to stop typing now."
|
|
||||||
);
|
|
||||||
cy.button("Save").click();
|
cy.button("Save").click();
|
||||||
|
|
||||||
// View Course
|
// View Course
|
||||||
|
|||||||
@@ -155,7 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if lesson.instructor_notes and (is_moderator or instructor or is_evaluator) %}
|
{% if instructor_notes and (is_moderator or instructor or is_evaluator) %}
|
||||||
<div class="alert alert-secondary mb-4">
|
<div class="alert alert-secondary mb-4">
|
||||||
<div class="bold-heading collapse-section collapsed" data-toggle="collapse" data-target="#instructor-notes">
|
<div class="bold-heading collapse-section collapsed" data-toggle="collapse" data-target="#instructor-notes">
|
||||||
<svg class="icon icon-md pull-right">
|
<svg class="icon icon-md pull-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user