intellij-plugin/educational-core/testSrc/com/jetbrains/edu/learning/actions/navigate/NonTemplateBasedFrameworkLessonNavigationTest.kt [116:151]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - withVirtualFileListener(course) { val task1 = course.findTask("lesson1", "task1") task1.openTaskFileInEditor("src/Task.kt") testAction(NextTaskAction.ACTION_ID) val task2 = course.findTask("lesson1", "task2") task2.openTaskFileInEditor("src/Task.kt") myFixture.type("fun bar() {}\n") testAction(PreviousTaskAction.ACTION_ID) task1.openTaskFileInEditor("src/Task.kt") myFixture.type("fun baz() {}\n") withEduTestDialog(EduTestDialog(Messages.YES)) { testAction(NextTaskAction.ACTION_ID) }.checkWasShown() } val fileTree = fileTree { dir("lesson1") { dir("task") { dir("src") { file("Task.kt", """ fun bar() {} fun foo() {} """) file("Baz.kt", "fun baz() {}") } dir("test") { file("Tests2.kt", """ fun tests2() {} """) } } dir("task1") { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - intellij-plugin/educational-core/testSrc/com/jetbrains/edu/learning/actions/navigate/hyperskill/HyperskillNavigationTest.kt [114:149]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - withVirtualFileListener(course) { val task1 = course.findTask("lesson1", "task1") task1.openTaskFileInEditor("src/Task.kt") testAction(NextTaskAction.ACTION_ID) val task2 = course.findTask("lesson1", "task2") task2.openTaskFileInEditor("src/Task.kt") myFixture.type("fun bar() {}\n") testAction(PreviousTaskAction.ACTION_ID) task1.openTaskFileInEditor("src/Task.kt") myFixture.type("fun baz() {}\n") withEduTestDialog(EduTestDialog(Messages.YES)) { testAction(NextTaskAction.ACTION_ID) }.checkWasShown() } val fileTree = fileTree { dir("lesson1") { dir("task") { dir("src") { file("Task.kt", """ fun bar() {} fun foo() {} """) file("Baz.kt", "fun baz() {}") } dir("test") { file("Tests2.kt", """ fun tests2() {} """) } } dir("task1") { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -