Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs427fa20team22
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
htmoss2
cs427fa20team22
Commits
26f9c29d
Commit
26f9c29d
authored
4 years ago
by
ahmada4
Browse files
Options
Downloads
Patches
Plain Diff
Added Selenium tests for Subflow 2
parent
9fff72ef
No related branches found
Branches containing commit
No related tags found
1 merge request
!17
UC 41: Implemented Sending Reminders
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iTrust/test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java
+9
-0
9 additions, 0 deletions
.../test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java
with
9 additions
and
0 deletions
iTrust/test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java
+
9
−
0
View file @
26f9c29d
...
@@ -35,6 +35,15 @@ public class SendRemindersTest extends iTrustSeleniumTest{
...
@@ -35,6 +35,15 @@ public class SendRemindersTest extends iTrustSeleniumTest{
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
Date
date
=
new
Date
();
Date
date
=
new
Date
();
String
stamp
=
dateFormat
.
format
(
date
);
String
stamp
=
dateFormat
.
format
(
date
);
// Check admin reminders outbox
driver
.
findElement
(
By
.
linkText
(
"Reminder Message Outbox"
)).
click
();
assertNotNull
(
driver
.
findElement
(
By
.
className
(
"fancyTable"
)));
assertTrue
(
driver
.
getPageSource
().
contains
(
stamp
));
// Check a reminder message
driver
.
findElement
(
By
.
linkText
(
"Read"
)).
click
();
assertTrue
(
driver
.
getPageSource
().
contains
(
stamp
));
// Logout admin and login as patient
// Logout admin and login as patient
List
<
WebElement
>
links
=
driver
.
findElements
(
By
.
tagName
(
"a"
));
List
<
WebElement
>
links
=
driver
.
findElements
(
By
.
tagName
(
"a"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment