Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
836
Issues
836
List
Boards
Labels
Service Desk
Milestones
Merge Requests
42
Merge Requests
42
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
6651141f
Commit
6651141f
authored
1 hour ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): apply changes as per review
parent
da0917aa
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#82490787
running with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
blogs.spec.js
cypress/integration/blogs.spec.js
+2
-2
newsfeed.spec.js
cypress/integration/newsfeed.spec.js
+4
-4
selector.component.html
...n/components/poster-date-selector/selector.component.html
+1
-1
selector.component.scss
...n/components/poster-date-selector/selector.component.scss
+2
-2
poster.component.scss
src/app/modules/newsfeed/poster/poster.component.scss
+1
-1
No files found.
cypress/integration/blogs.spec.js
View file @
6651141f
...
...
@@ -183,13 +183,13 @@ context('Blogs', () => {
cy
.
get
(
'
.m-mature-info a span
'
).
contains
(
'
Mature content
'
);
// set scheduled date
cy
.
get
(
'
.m-poster-date-selector
--
input
'
).
click
();
cy
.
get
(
'
.m-poster-date-selector
__
input
'
).
click
();
cy
.
get
(
'
td.c-datepicker__day-body.c-datepicker__day--selected + td
'
).
click
();
cy
.
get
(
'
a.c-btn.c-btn--flat.js-ok
'
).
click
();
// get setted date to compare
let
scheduledDate
;
cy
.
get
(
'
div.m-poster-date-selector
--
input div.m-tooltip--bubble
'
)
cy
.
get
(
'
div.m-poster-date-selector
__
input div.m-tooltip--bubble
'
)
.
invoke
(
'
text
'
).
then
((
text
)
=>
{
scheduledDate
=
text
;
});
...
...
This diff is collapsed.
Click to expand it.
cypress/integration/newsfeed.spec.js
View file @
6651141f
...
...
@@ -57,14 +57,14 @@ context('Newsfeed', () => {
cy
.
get
(
'
minds-newsfeed-poster textarea
'
).
type
(
'
This is a post
'
);
// set scheduled date
cy
.
get
(
'
.m-poster-date-selector
--
input
'
).
click
();
cy
.
get
(
'
.m-poster-date-selector
__
input
'
).
click
();
cy
.
get
(
'
button.c-datepicker__next
'
).
click
();
cy
.
get
(
'
tr.c-datepicker__days-row:nth-child(2) td.c-datepicker__day-body:first-child
'
).
click
();
cy
.
get
(
'
a.c-btn.c-btn--flat.js-ok
'
).
click
();
// get setted date to compare
let
scheduledDate
;
cy
.
get
(
'
div.m-poster-date-selector
--
input div.m-tooltip--bubble
'
)
cy
.
get
(
'
div.m-poster-date-selector
__
input div.m-tooltip--bubble
'
)
.
invoke
(
'
text
'
).
then
((
text
)
=>
{
scheduledDate
=
text
;
});
...
...
@@ -88,13 +88,13 @@ context('Newsfeed', () => {
// edit the activity
cy
.
get
(
'
.minds-list > minds-activity:first-child m-post-menu > button.minds-more
'
).
click
();
cy
.
get
(
'
.minds-list > minds-activity:first-child li.mdl-menu__item:first-child
'
).
click
();
cy
.
get
(
'
.minds-list > minds-activity:first-child .m-poster-date-selector
--
input
'
).
click
();
cy
.
get
(
'
.minds-list > minds-activity:first-child .m-poster-date-selector
__
input
'
).
click
();
cy
.
get
(
'
button.c-datepicker__next
'
).
click
();
cy
.
get
(
'
tr.c-datepicker__days-row:nth-child(3) td.c-datepicker__day-body:first-child
'
).
click
();
cy
.
get
(
'
a.c-btn.c-btn--flat.js-ok
'
).
click
();
// get setted date to compare
cy
.
get
(
'
.minds-list > minds-activity:first-child div.m-poster-date-selector
--
input div.m-tooltip--bubble
'
)
cy
.
get
(
'
.minds-list > minds-activity:first-child div.m-poster-date-selector
__
input div.m-tooltip--bubble
'
)
.
invoke
(
'
text
'
).
then
((
text
)
=>
{
scheduledDate
=
text
;
});
...
...
This diff is collapsed.
Click to expand it.
src/app/common/components/poster-date-selector/selector.component.html
View file @
6651141f
<div
class=
"m-poster-date-selector
--
input"
class=
"m-poster-date-selector
__
input"
[class.selected]=
"hasDateSelected()"
mdl-datetime-picker
[date]=
"getDate()"
...
...
This diff is collapsed.
Click to expand it.
src/app/common/components/poster-date-selector/selector.component.scss
View file @
6651141f
m-poster-date-selector
{
.m-poster-date-selector
--
label
{
.m-poster-date-selector
__
label
{
text-transform
:
uppercase
;
letter-spacing
:
2
.5px
;
align-self
:
center
;
font-size
:
12px
;
}
.m-poster-date-selector
--
input
{
.m-poster-date-selector
__
input
{
align-items
:
center
;
margin-right
:
-4px
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/poster/poster.component.scss
View file @
6651141f
...
...
@@ -259,7 +259,7 @@ m-hashtags-selector {
}
>
*
{
padding
:
4px
8
px
;
padding
:
4px
4
px
;
position
:
relative
;
white-space
:
nowrap
;
text-decoration
:
none
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment