#120 fix variable
This commit is contained in:
parent
828d320e0f
commit
280c39dae4
@ -31,7 +31,7 @@ public class StudentTaskTest extends TestTemplate {
|
|||||||
new TaskPage(), Arrays.asList("Создать задачу", "/students/task?id=0")
|
new TaskPage(), Arrays.asList("Создать задачу", "/students/task?id=0")
|
||||||
);
|
);
|
||||||
|
|
||||||
private final String TAG = "ATag";
|
private final String tag = "ATag";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ApplicationProperties applicationProperties;
|
private ApplicationProperties applicationProperties;
|
||||||
@ -168,13 +168,13 @@ public class StudentTaskTest extends TestTemplate {
|
|||||||
String taskName = "Task " + (new Date()).getTime();
|
String taskName = "Task " + (new Date()).getTime();
|
||||||
|
|
||||||
taskPage.setName(taskName);
|
taskPage.setName(taskName);
|
||||||
taskPage.setTag(TAG);
|
taskPage.setTag(tag);
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
taskPage.addDeadlineDate("01.01.2020", 0);
|
taskPage.addDeadlineDate("01.01.2020", 0);
|
||||||
taskPage.addDeadlineDescription("Description", 0);
|
taskPage.addDeadlineDescription("Description", 0);
|
||||||
taskPage.save();
|
taskPage.save();
|
||||||
|
|
||||||
Assert.assertTrue(tasksPage.findTaskByTag(taskName, TAG));
|
Assert.assertTrue(tasksPage.findTaskByTag(taskName, tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -185,7 +185,7 @@ public class StudentTaskTest extends TestTemplate {
|
|||||||
TasksPage tasksPage = (TasksPage) getContext().initPage(page.getKey());
|
TasksPage tasksPage = (TasksPage) getContext().initPage(page.getKey());
|
||||||
|
|
||||||
|
|
||||||
Assert.assertTrue(tasksPage.findTag(TAG));
|
Assert.assertTrue(tasksPage.findTag(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -194,9 +194,9 @@ public class StudentTaskTest extends TestTemplate {
|
|||||||
|
|
||||||
getContext().goTo(applicationProperties.getBaseUrl() + page.getValue().get(1));
|
getContext().goTo(applicationProperties.getBaseUrl() + page.getValue().get(1));
|
||||||
TasksPage tasksPage = (TasksPage) getContext().initPage(page.getKey());
|
TasksPage tasksPage = (TasksPage) getContext().initPage(page.getKey());
|
||||||
tasksPage.selectTag(TAG);
|
tasksPage.selectTag(tag);
|
||||||
|
|
||||||
Assert.assertTrue(tasksPage.findTasksByTag(TAG));
|
Assert.assertTrue(tasksPage.findTasksByTag(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user