forked from drevops/behat-steps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.feature
52 lines (47 loc) · 1.78 KB
/
content.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Feature: Check that ContentTrait works for or D9
@api
Scenario: Assert visiting a page with title of specified content type
Given page content:
| title |
| [TEST] Page title |
When I am logged in as a user with the "administrator" role
And I visit "page" "[TEST] Page title"
Then I should see "[TEST] Page title"
@api
Scenario: Assert visiting edit page with title of specified content type
Given page content:
| title |
| [TEST] Page title |
When I am logged in as a user with the "administrator" role
And I edit "page" "[TEST] Page title"
Then I should see "[TEST] Page title"
@api
Scenario: Assert visiting delete page with title of specified content type
Given page content:
| title |
| [TEST] Page title |
When I am logged in as a user with the "administrator" role
And I delete "page" "[TEST] Page title"
Then I should see "[TEST] Page title"
@api
Scenario: Assert removing page with title and specified type
Given page content:
| title |
| [TEST] Page title |
When I am logged in as a user with the "administrator" role
And I go to "content/test-page-title"
Then I should get a 200 HTTP response
When no page content:
| title |
| [TEST] Page title |
And I go to "content/test-page-title"
Then I should get a 404 HTTP response
@api
Scenario: Assert visiting scheduled transition page with title of specified content type
Given page content:
| title |
| [TEST] Page title |
And I am logged in as a user with the "administrator" role
When I visit page "[TEST] Page title" scheduled transitions
Then I should see "[TEST] Page title"
And save screenshot