Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ASE_Y2S1_CP_G4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Joshua Gill
ASE_Y2S1_CP_G4
Commits
52fc43ff
Commit
52fc43ff
authored
3 years ago
by
John Watkins
Browse files
Options
Downloads
Patches
Plain Diff
converted routed to use base_url
parent
c846124a
No related branches found
No related tags found
1 merge request
!114
LoggingService service class, new method to add a log to the "Logs" table when...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
selenium testing/suites/loginRegister.py
+2
-3
2 additions, 3 deletions
selenium testing/suites/loginRegister.py
selenium testing/suites/nav.py
+1
-1
1 addition, 1 deletion
selenium testing/suites/nav.py
with
3 additions
and
4 deletions
selenium testing/suites/loginRegister.py
+
2
−
3
View file @
52fc43ff
from
modules.navigation
import
*
from
modules.main
import
*
from
modules.navigation
import
*
from
selenium
import
webdriver
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.by
import
By
...
...
@@ -79,7 +78,7 @@ class LoginRegisterSuite:
time
.
sleep
(
1
)
try
:
assert
driver
.
current_url
==
"
http://localhost:5000
/dashboard
"
assert
driver
.
current_url
==
BASE_URL
+
"
/dashboard
"
success
(
"
Register with valid details works
"
)
self
.
passed
+=
1
except
AssertionError
as
e
:
...
...
@@ -133,7 +132,7 @@ class LoginRegisterSuite:
time
.
sleep
(
1
)
try
:
assert
driver
.
current_url
==
"
http://localhost:5000
/
"
assert
driver
.
current_url
==
BASE_URL
+
"
/
"
success
(
"
Login in correctly redirects
"
)
self
.
passed
+=
1
except
AssertionError
as
e
:
...
...
This diff is collapsed.
Click to expand it.
selenium testing/suites/nav.py
+
1
−
1
View file @
52fc43ff
...
...
@@ -43,7 +43,7 @@ class Nav:
time
.
sleep
(
1
)
try
:
assert
driver
.
current_url
==
"
http://localhost:5000
/login
"
assert
driver
.
current_url
==
BASE_URL
+
"
/login
"
success
(
"
Redirect on logout works correctly
"
)
self
.
passed
+=
1
except
AssertionError
as
e
:
...
...
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