Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix behave tests #2138

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 51 additions & 51 deletions server/features/recurring_event_and_planning.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Feature: Recurring Events & Planning
[{
"name": "Daily Club",
"dates": {
"start": "2024-11-21T12:00:00.000Z",
"end": "2024-11-21T14:00:00.000Z",
"start": "2050-11-21T12:00:00.000Z",
"end": "2050-11-21T14:00:00.000Z",
"tz": "Australia/Sydney",
"recurring_rule": {
"frequency": "DAILY",
Expand All @@ -28,17 +28,17 @@ Feature: Recurring Events & Planning
"_id": "#EVENT1._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"name": "Daily Club",
"dates": {"start": "2024-11-21T12:00:00+0000", "end": "2024-11-21T14:00:00+0000"}
"dates": {"start": "2050-11-21T12:00:00+0000", "end": "2050-11-21T14:00:00+0000"}
}, {
"_id": "#EVENT2._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"name": "Daily Club",
"dates": {"start": "2024-11-22T12:00:00+0000", "end": "2024-11-22T14:00:00+0000"}
"dates": {"start": "2050-11-22T12:00:00+0000", "end": "2050-11-22T14:00:00+0000"}
}, {
"_id": "#EVENT3._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"name": "Daily Club",
"dates": {"start": "2024-11-23T12:00:00+0000", "end": "2024-11-23T14:00:00+0000"}
"dates": {"start": "2050-11-23T12:00:00+0000", "end": "2050-11-23T14:00:00+0000"}
}]}
"""

Expand All @@ -49,15 +49,15 @@ Feature: Recurring Events & Planning
[{
"headline": "test headline",
"event_item": "#EVENT1._id#",
"planning_date": "2024-11-21T12:00:00.000Z",
"planning_date": "2050-11-21T12:00:00.000Z",
"coverages": [{
"workflow_status": "draft",
"news_coverage_status": {"qcode": "ncostat:int"},
"planning": {
"headline": "test headline",
"slugline": "test slugline",
"g2_content_type": "text",
"scheduled": "2024-11-21T15:00:00.000Z"
"scheduled": "2050-11-21T15:00:00.000Z"
}
}, {
"workflow_status": "draft",
Expand All @@ -66,7 +66,7 @@ Feature: Recurring Events & Planning
"headline": "test headline",
"slugline": "test slugline",
"g2_content_type": "picture",
"scheduled": "2024-11-21T16:00:00.000Z"
"scheduled": "2050-11-21T16:00:00.000Z"
}
}]
}]
Expand All @@ -79,12 +79,12 @@ Feature: Recurring Events & Planning
"guid": "__any_value__",
"type": "planning",
"headline": "test headline",
"planning_date": "2024-11-21T12:00:00+0000",
"planning_date": "2050-11-21T12:00:00+0000",
"event_item": "#EVENT1._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-21T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-21T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-21T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-21T16:00:00+0000"}}
]
}]}
"""
Expand All @@ -96,7 +96,7 @@ Feature: Recurring Events & Planning
[{
"headline": "test headline",
"event_item": "#EVENT2._id#",
"planning_date": "2024-11-22T12:00:00.000Z",
"planning_date": "2050-11-22T12:00:00.000Z",
"update_method": "future",
"coverages": [{
"workflow_status": "draft",
Expand All @@ -105,7 +105,7 @@ Feature: Recurring Events & Planning
"headline": "test headline",
"slugline": "test slugline",
"g2_content_type": "text",
"scheduled": "2024-11-22T15:00:00.000Z"
"scheduled": "2050-11-22T15:00:00.000Z"
}
}, {
"workflow_status": "draft",
Expand All @@ -114,7 +114,7 @@ Feature: Recurring Events & Planning
"headline": "test headline",
"slugline": "test slugline",
"g2_content_type": "picture",
"scheduled": "2024-11-22T16:00:00.000Z"
"scheduled": "2050-11-22T16:00:00.000Z"
}
}]
}]
Expand All @@ -127,23 +127,23 @@ Feature: Recurring Events & Planning
"guid": "__any_value__",
"type": "planning",
"headline": "test headline",
"planning_date": "2024-11-22T12:00:00+0000",
"planning_date": "2050-11-22T12:00:00+0000",
"event_item": "#EVENT2._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-22T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-22T16:00:00+0000"}}
]
}, {
"guid": "__any_value__",
"type": "planning",
"headline": "test headline",
"planning_date": "2024-11-23T12:00:00+0000",
"planning_date": "2050-11-23T12:00:00+0000",
"event_item": "#EVENT3._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-23T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-23T16:00:00+0000"}}
]
}]}
"""
Expand All @@ -155,7 +155,7 @@ Feature: Recurring Events & Planning
[{
"headline": "test headline",
"event_item": "#EVENT1._id#",
"planning_date": "2024-11-21T12:00:00.000Z",
"planning_date": "2050-11-21T12:00:00.000Z",
"update_method": "all",
"coverages": [{
"workflow_status": "draft",
Expand All @@ -164,7 +164,7 @@ Feature: Recurring Events & Planning
"headline": "test headline",
"slugline": "test slugline",
"g2_content_type": "text",
"scheduled": "2024-11-21T15:00:00.000Z"
"scheduled": "2050-11-21T15:00:00.000Z"
}
}, {
"workflow_status": "draft",
Expand All @@ -173,7 +173,7 @@ Feature: Recurring Events & Planning
"headline": "test headline",
"slugline": "test slugline",
"g2_content_type": "picture",
"scheduled": "2024-11-21T16:00:00.000Z"
"scheduled": "2050-11-21T16:00:00.000Z"
}
}]
}]
Expand All @@ -186,34 +186,34 @@ Feature: Recurring Events & Planning
"guid": "__any_value__",
"type": "planning",
"headline": "test headline",
"planning_date": "2024-11-21T12:00:00+0000",
"planning_date": "2050-11-21T12:00:00+0000",
"event_item": "#EVENT1._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-21T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-21T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-21T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-21T16:00:00+0000"}}
]
}, {
"guid": "__any_value__",
"type": "planning",
"headline": "test headline",
"planning_date": "2024-11-22T12:00:00+0000",
"planning_date": "2050-11-22T12:00:00+0000",
"event_item": "#EVENT2._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-22T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-22T16:00:00+0000"}}
]
}, {
"guid": "__any_value__",
"type": "planning",
"headline": "test headline",
"planning_date": "2024-11-23T12:00:00+0000",
"planning_date": "2050-11-23T12:00:00+0000",
"event_item": "#EVENT3._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-23T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-23T16:00:00+0000"}}
]
}]}
"""
Expand All @@ -228,13 +228,13 @@ Feature: Recurring Events & Planning
"coverages": [{
"g2_content_type": "text",
"news_coverage_status": "ncostat:int",
"scheduled": "2024-11-22T15:00:00.000Z",
"scheduled": "2050-11-22T15:00:00.000Z",
"slugline": "test slugline",
"headline": "test headline"
}, {
"g2_content_type": "picture",
"news_coverage_status": "ncostat:int",
"scheduled": "2024-11-22T16:00:00.000Z",
"scheduled": "2050-11-22T16:00:00.000Z",
"slugline": "test slugline",
"headline": "test headline"
}]
Expand All @@ -248,22 +248,22 @@ Feature: Recurring Events & Planning
{"_items": [{
"guid": "__any_value__",
"type": "planning",
"planning_date": "2024-11-22T12:00:00+0000",
"planning_date": "2050-11-22T12:00:00+0000",
"event_item": "#EVENT2._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-22T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-22T16:00:00+0000"}}
]
}, {
"guid": "__any_value__",
"type": "planning",
"planning_date": "2024-11-23T12:00:00+0000",
"planning_date": "2050-11-23T12:00:00+0000",
"event_item": "#EVENT3._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-23T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-23T16:00:00+0000"}}
]
}]}
"""
Expand All @@ -278,13 +278,13 @@ Feature: Recurring Events & Planning
"coverages": [{
"g2_content_type": "text",
"news_coverage_status": "ncostat:int",
"scheduled": "2024-11-22T15:00:00.000Z",
"scheduled": "2050-11-22T15:00:00.000Z",
"slugline": "test slugline",
"headline": "test headline"
}, {
"g2_content_type": "picture",
"news_coverage_status": "ncostat:int",
"scheduled": "2024-11-22T16:00:00.000Z",
"scheduled": "2050-11-22T16:00:00.000Z",
"slugline": "test slugline",
"headline": "test headline"
}]
Expand All @@ -298,32 +298,32 @@ Feature: Recurring Events & Planning
{"_items": [{
"guid": "__any_value__",
"type": "planning",
"planning_date": "2024-11-21T12:00:00+0000",
"planning_date": "2050-11-21T12:00:00+0000",
"event_item": "#EVENT1._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-21T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-21T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-21T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-21T16:00:00+0000"}}
]
}, {
"guid": "__any_value__",
"type": "planning",
"planning_date": "2024-11-22T12:00:00+0000",
"planning_date": "2050-11-22T12:00:00+0000",
"event_item": "#EVENT2._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-22T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-22T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-22T16:00:00+0000"}}
]
}, {
"guid": "__any_value__",
"type": "planning",
"planning_date": "2024-11-23T12:00:00+0000",
"planning_date": "2050-11-23T12:00:00+0000",
"event_item": "#EVENT3._id#",
"recurrence_id": "#EVENT1.recurrence_id#",
"coverages": [
{"planning": {"g2_content_type": "text", "scheduled": "2024-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2024-11-23T16:00:00+0000"}}
{"planning": {"g2_content_type": "text", "scheduled": "2050-11-23T15:00:00+0000"}},
{"planning": {"g2_content_type": "picture", "scheduled": "2050-11-23T16:00:00+0000"}}
]
}]}
"""
Loading