Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
808
Merge Requests
58
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
e5f7e784
Commit
e5f7e784
authored
19 minutes ago
by
Xander Miller
Browse files
Options
Download
(test): adds spec for editing channel profile
parent
c459fbe6
test/new-e2e
1 merge request
!644
WIP: Test/new e2e
Pipeline
#94184999
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
cypress/integration/channel/channel-profile-edit.spec.js
0 → 100644
View file @
e5f7e784
// UX Elements
const
channelEditButton
=
"
.m-channel--edit-button-wrapper button > span:contains('Edit')
"
const
channelNameInput
=
"
.m-channel--name--editor > input
"
const
channelDescriptionTextArea
=
"
.mdl-card__supporting-text > textarea
"
const
channelSaveButton
=
"
.m-channel--edit-button-wrapper button > span:contains('Save')
"
context
.
only
(
'
Edit Channel Profile
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
)
.
then
((
sessionCookie
)
=>
{
if
(
sessionCookie
===
null
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
it
(
'
should be able to edit simple fields
'
,
()
=>
{
cy
.
visit
(
`/
${
Cypress
.
env
().
username
}
`
);
cy
.
get
(
channelEditButton
)
.
click
();
// edit channel name
cy
.
get
(
channelNameInput
).
clear
().
type
(
'
The Lion Tamer
'
);
// edit channel description
cy
.
get
(
channelDescriptionTextArea
).
clear
().
type
(
'
A channel that tames all the lions.
'
);
// submit changes
cy
.
get
(
channelSaveButton
)
.
click
();
});
});
\ No newline at end of file
This diff is collapsed.
Please
register
or
sign in
to comment