All Scenarios

15

Passed Scenarios

15

Failed Scenarios

0
As a Content editor
I want a News post content type with the fields the recipe defines
So that I can capture a news post's title, summary, content and media.

Given I am a logged in user with the "Content editor" user 2s 734ms

When I go to "/node/add/news" 10s 465ms

And wait 4s 6ms

Then I should see "Create News post" 6ms

And I should see "Title" 3ms

And I should see "Featured image" 4ms

And I should see "Description" 3ms

And I should see "Content" 3ms

And I should see "Categories" 3ms

And I should see "Tags" 3ms

And "#edit-title-0-value" should be visible within 10 seconds 2ms

And "#edit-field-news-categories" should be visible within 10 seconds 1ms

As a Content editor
I want to create a news post with its fields
So that the news post page presents the details to visitors.

Given I am a logged in user with the "Content editor" user 2s 102ms

When I go to "/node/add/news" 7s 83ms

And wait 4s 5ms

And I fill in "Title" with "Varbase Example Authoring News 73501" 1s 81ms

And I fill in "Description" with "Short summary for the authoring test news post 73501." 1s 64ms

And I save the news post 5s 386ms

Then I should see "Varbase Example Authoring News 73501" 4ms

When I delete the news post I am viewing 2s 199ms

Then I should see "has been deleted" 5ms

As a Content editor
I want to edit a news post I created
So that I can correct its details after publishing.

@check @local @development @staging @production
Scenario:A Content editor edits a news post's title
14

Given I am a logged in user with the "Content editor" user 2s 48ms

When I go to "/node/add/news" 7s 54ms

And wait 4s 5ms

And I fill in "Title" with "Varbase Example Edit News 73502 before" 1s 79ms

And I fill in "Description" with "Summary for the edit test news post 73502." 1s 64ms

And I save the news post 5s 191ms

Then I should see "Varbase Example Edit News 73502 before" 5ms

When I open the edit form for the news post I am viewing 5s 974ms

And I fill in "Title" with "Varbase Example Edit News 73502 after" 1s 91ms

And I save the news post 5s 263ms

Then I should see "Varbase Example Edit News 73502 after" 4ms

And I should not see "Varbase Example Edit News 73502 before" 2ms

When I delete the news post I am viewing 5s 697ms

Then I should see "has been deleted" 5ms

As a Content editor
I want to add a featured image to a news post from the media library
So that the news post has a visual on its page and listing card.

Given I am a logged in user with the "Content editor" user 2s 50ms

When I go to "/node/add/news" 6s 921ms

And wait 4s 3ms

And I fill in "Title" with "Varbase Example Image News 73503" 1s 80ms

And I fill in "Description" with "Summary for the featured-image test news post 73503." 1s 63ms

And I add the first available featured image from the media library 9s 413ms

And I save the news post 5s 282ms

Then I should see "Varbase Example Image News 73503" 5ms

When I delete the news post I am viewing 5s 708ms

Then I should see "has been deleted" 5ms

As a site visitor
I want a news listing at /news with cards, a summary and filters
So that I can browse and narrow down the site's news posts.

@check @local @development @staging @production
Scenario:The news listing shows news cards and a result summary
6

Given I am an anonymous user 1s 396ms

When I go to "/news?search=Varbase+Example+News" 817ms

And wait 3ms

Then I should see text matching "1-12 of 15" 1ms

And I should see "Varbase Example News 01" 4ms

And "a[href='/news/varbase-example-news-01']" should have a count of 1 1ms

Given I am an anonymous user 685ms

When I go to "/news?search=Varbase+Example+News" 682ms

And wait 3ms

Then I should see "Search by" 3ms

And I should see "Type" 2ms

And I should see "Industry" 2ms

As a site visitor
I want to filter the news listing by keyword and by Type
So that I can find the news posts that interest me.

@check @local @development @staging @production
Scenario:Filtering the news listing by keyword narrows the results
8

Given I am an anonymous user 683ms

When I go to "/news" 816ms

And wait 3ms

And I fill in "Search by" with "Varbase Example News" 311ms

And I press "Apply Filter" 1s 86ms

And wait 4ms

Then the news result summary should show a total of 15 3ms

And I should see "Varbase Example News 01" 2ms

Given I am an anonymous user 682ms

When I go to "/news" 667ms

And wait 3ms

And I fill in "Search by" with "Varbase Example News" 311ms

And I choose "Announcements" in the news Type filter 310ms

And I press "Apply Filter" 1s 77ms

And wait 4ms

Then the news result summary should show a total of 8 2ms

As a site visitor
I want the news listing to paginate
So that I can browse beyond the first page of news posts.

Given I am an anonymous user 678ms

When I go to "/news" 664ms

And wait 3ms

And I fill in "Search by" with "Varbase Example News" 312ms

And I press "Apply Filter" 1s 86ms

And wait 4ms

Then the news result summary should show a total of 15 1ms

And I should see text matching "1-12 of 15" 1ms

And ".pager__items" should be visible 1ms

When I go to "/news?search=Varbase+Example+News&page=1" 802ms

And wait 3ms

Then I should see text matching "13-15 of 15" < 1ms

As a site administrator
I want news authoring restricted to editorial roles
So that only trusted users can create and manage news posts.

@check @local @development @staging @production
Scenario:An anonymous user cannot reach the News creation form
4

Given I am an anonymous user 680ms

When I go to "/node/add/news" 609ms

And wait 3ms

Then I should not see "Create News post" 1ms

@check @local @development @staging @production
Scenario:A Normal user cannot reach the News creation form
4

Given I am a logged in user with the "Normal user" user 2s 21ms

When I go to "/node/add/news" 721ms

And wait 3ms

Then I should not see "Create News post" 1ms

@check @local @development @staging @production
Scenario Outline:Editorial roles can reach the News creation form
4

Given I am a logged in user with the "Content editor" user 2s 88ms

When I go to "/node/add/news" 6s 948ms

And wait 4s 5ms

Then I should see "Create News post" 5ms

@check @local @development @staging @production
Scenario Outline:Editorial roles can reach the News creation form
4

Given I am a logged in user with the "Content admin" user 2s 124ms

When I go to "/node/add/news" 7s 25ms

And wait 4s 5ms

Then I should see "Create News post" 5ms

@check @local @development @staging @production
Scenario Outline:Editorial roles can reach the News creation form
4

Given I am a logged in user with the "webmaster" user 2s 242ms

When I go to "/node/add/news" 7s 140ms

And wait 4s 6ms

Then I should see "Create News post" 7ms

@check @local @development @staging @production
Scenario:A Content editor can create, edit and delete a news post
13

Given I am a logged in user with the "Content editor" user 2s 58ms

When I go to "/node/add/news" 7s 4ms

And wait 4s 6ms

And I fill in "Title" with "Varbase Example Permission News 73505" 1s 79ms

And I fill in "Description" with "Summary for the permission test news post 73505." 1s 62ms

And I save the news post 5s 201ms

Then I should see "Varbase Example Permission News 73505" 4ms

When I open the edit form for the news post I am viewing 5s 913ms

And I fill in "Description" with "Summary for the permission test news post 73505 (updated)." 1s 67ms

And I save the news post 5s 204ms

Then I should see "Varbase Example Permission News 73505" 4ms

When I delete the news post I am viewing 5s 687ms

Then I should see "has been deleted" 5ms