Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
org.etsi.osl.tmf.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Service Desk
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
OSL
code
org.etsi.osl.tmf.web
Merge requests
!22
Draft: Resolve "Implement user journey tests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: Resolve "Implement user journey tests"
26-implement-user-journey-tests
into
develop
Overview
0
Commits
15
Pipelines
4
Changes
3
Open
trantzas
requested to merge
26-implement-user-journey-tests
into
develop
1 month ago
Overview
0
Commits
15
Pipelines
4
Changes
3
Expand
Closes
#26
0
0
Merge request reports
Viewing commit
354c9046
Prev
Next
Show latest version
3 files
+
82
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
354c9046
fixed-config
· 354c9046
tzanmix
authored
1 month ago
cypress/e2e/user-journeys.cy.ts
0 → 100644
+
116
−
0
Options
// const baseUrl = Cypress.config('baseUrl');
describe
(
'
user journey
'
,
()
=>
{
beforeEach
(()
=>
{
//cy.visit(baseUrl);
cy
.
visit
(
window
.
location
.
origin
);
})
context
(
'
user-not-logged-in
'
,
()
=>
{
it
(
'
checks services portal
'
,
()
=>
{
cy
.
log
(
Cypress
.
env
(
"
username
"
));
cy
.
navigateToServices
(
'
:nth-child(2) > .container > .row > :nth-child(2) > a > .btn
'
);
});
it
(
'
checks services portal via image
'
,
()
=>
{
cy
.
navigateToServices
(
'
:nth-child(2) > .container > .row > .text-left
'
);
});
it
(
'
checks services portal via anchor
'
,
()
=>
{
cy
.
navigateToServices
(
'
:nth-child(1) > .nav-link
'
);
});
it
(
'
checks resources portal
'
,
()
=>
{
//cy.get(':nth-child(2) > .nav-link').click();
cy
.
navigateToResources
(
'
:nth-child(3) > .container > .row > .order-md-1 > a > .btn
'
);
});
it
(
'
checks resources portal via image
'
,
()
=>
{
cy
.
navigateToResources
(
'
:nth-child(3) > .container > .row > .order-md-2 > a > .img-fluid
'
);
})
it
(
'
checks resources portal via anchor
'
,
()
=>
{
cy
.
navigateToResources
(
'
:nth-child(2) > .nav-link
'
);
});
it
(
'
checks testing portal
'
,
()
=>
{
cy
.
navigateToTesting
(
'
:nth-child(5) > .container > .row > .order-md-1 > a > .btn
'
);
});
it
(
'
checks testing via image
'
,
()
=>
{
cy
.
navigateToTesting
(
'
:nth-child(5) > .container > .row > .order-md-2 > a > .img-fluid
'
);
})
it
(
'
checks testing portal via anchor
'
,
()
=>
{
cy
.
navigateToTesting
(
'
:nth-child(4) > .nav-link
'
)
});
it
(
'
checks products portal
'
,
()
=>
{
cy
.
navigateToProducts
(
'
:nth-child(6) > .container > .row > :nth-child(2) > a > .btn
'
);
});
it
(
'
checks products portal via image
'
,
()
=>
{
cy
.
navigateToProducts
(
'
:nth-child(6) > .container > .row > .text-left > a > .img-fluid
'
);
})
it
(
'
checks products portal via anchor
'
,
()
=>
{
cy
.
navigateToProducts
(
'
:nth-child(5) > .nav-link
'
);
})
});
context
(
'
<who we are> links
'
,
()
=>
{
beforeEach
(()
=>
{
cy
.
get
(
'
[id="contact"]
'
).
scrollIntoView
().
should
(
'
be.visible
'
);
})
it
(
'
checks ETSI SDG OpenSlice Link
'
,
()
=>
{
cy
.
get
(
'
.ng-star-inserted > :nth-child(1) > .text-white
'
).
click
();
cy
.
origin
(
'
https://osl.etsi.org/
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/
"
);
});
});
it
(
"
checks OpenSLice by ETSI wiki
"
,
()
=>
{
cy
.
get
(
'
:nth-child(3) > .text-white
'
).
click
();
cy
.
origin
(
'
https://osl.etsi.org/
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/documentation/latest/
"
);
});
});
it
(
'
checks <our wiki> link
'
,
()
=>
{
cy
.
get
(
'
.col-12 > :nth-child(3) > .font-weight-bold
'
).
click
();
cy
.
origin
(
'
https://osl.etsi.org/
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/documentation/latest/
"
);
});
});
it
(
'
checks linkedin link
'
,
()
=>
{
cy
.
get
(
'
:nth-child(2) > .ng-star-inserted > :nth-child(1)
'
).
click
();
cy
.
origin
(
'
https://www.linkedin.com/company/openslice
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/company/openslice
"
);
});
});
it
(
'
checks slack link
'
,
()
=>
{
cy
.
get
(
'
:nth-child(2) > .ng-star-inserted > :nth-child(2)
'
).
click
();
cy
.
origin
(
'
https://openslice.slack.com/
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/
"
);
});
});
//twitter test cannot pass, depends on user login
it
(
'
checks twitter link
'
,
()
=>
{
cy
.
get
(
'
:nth-child(2) > .ng-star-inserted > :nth-child(3)
'
).
click
();
cy
.
origin
(
'
https://x.com/OpensliceOSS
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
satisfy
"
,
(
url
)
=>
{
return
url
===
'
/OpensliceOSS
'
||
url
===
'
/i/flow/login
'
;
})
});
});
it
(
'
checks ecosystem link
'
,
()
=>
{
cy
.
get
(
'
.col-md-10 > :nth-child(1) > a
'
).
click
();
cy
.
origin
(
'
https://osl.etsi.org/ecosystem/
'
,
()
=>
{
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/ecosystem/
"
);
});
});
it
(
'
checks osl etsi link
'
,
()
=>
{
cy
.
get
(
'
[target="_blank"]
'
).
click
();
cy
.
location
(
"
pathname
"
).
should
(
"
equal
"
,
"
/
"
)
})
});
})
\ No newline at end of file
Loading