Skip to content

Instantly share code, notes, and snippets.

@pacreate
Feature: PA Create Clear Search - All entries
Scenario: User can all search entries when PA create tab is clicked
When I navigate to the dashboard at url "/create"
Then I open the advanced search
And I select the end date "30/03/2018"
And I select the start date "01/03/2018"
And I select "Science" from the topic drop down box
And I select "News" from the services drop down box
@pacreate
Feature: Service and sub service filters
Scenario: Services filter menu display's correct services
Given I navigate to the dashboard at url "/create"
Then The services filter menu will display drop down items in the order
| All |
| News |
| Entertainment |
| Lifestyle |
package com.pressassociation.explore.api;
import com.pressassociation.common.annotations.UsedReflectively;
import com.pressassociation.common.base.MoreCollectors;
import com.pressassociation.content.ninjs.Ninjs;
import com.google.auto.value.AutoValue;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
package com.pressassociation.content.testing.ui.steps.create;
import com.pressassociation.content.ninjs.Ninjs;
import com.pressassociation.content.ninjs.SubjectLink;
import com.pressassociation.content.testing.collections.ItemScenarioData;
import com.pressassociation.content.testing.collections.ScenarioData;
import com.pressassociation.content.testing.explore.api.ExploreApiScenarioData;
import com.pressassociation.content.testing.explore.api.PageObjectScenarioData;
import com.pressassociation.content.testing.selenium.helper.SeleniumHelper;
import com.pressassociation.content.testing.ui.pageobjects.ExplorePageObjectFactory;
@pacreate
@wip
Feature: PA Create Dashboard
Scenario: Dashboard detail for two events
Given I have event detail for events "paevent:showbiz-oscars" and "paevent:foo"
When I navigate to pa create dashboard at url "add/url/here"
Then the items will be listed in firstcreated descending order
@pacreate
Feature: PA Create Dashboard
Scenario: Dashboard detail for two events
Given I have event detail for events "paevent:showbiz-oscars" and "paevent:foo"
When I navigate to pa create dashboard at url "add/url/here"
Then the 1st dashboard item will link to the most recently published item
And the dashboard item displays the published time
And the dashboard item displays the first topic
@Test
public void testWiring() throws ExecutionException, TimeoutException, InterruptedException {
// stub elasticsearch responses
ResponseDefinitionBuilder dummyIndexResponse = aResponse()
.withBody("{\n"
+ " \"_shards\" : {\n"
+ " \"total\" : 2,\n"
+ " \"failed\" : 0,\n"
+ " \"successful\" : 2\n"
+ " },\n"
@pacreate
@wip
Feature: PA Create Summary Page - Assets
Scenario: Summary page for an event with 4 images
Given I have event detail for the event "1264"
When I navigate to the summary tab at url "/create/events/1264"
Then there should be a section with title "Images"
And 3 assets associated with the event will be displayed
And the 1st asset source should be rendered and has alt text
{
"event": {
"uri": "paevent:b47ddf45-6e26-4d9d-86ac-9e62459fda6f",
"profile": "paevent",
"version": "1",
"firstcreated": "2018-01-23T00:01:00Z",
"versioncreated": "2018-01-23T00:01:00Z",
"pubstatus": "usable",
"dates": {
"start": "2018-01-23T00:00:00Z",
{
"query": {
"bool": {
"must": [
{
"match": {
"type": "social"
}
}
],