forked from drevops/behat-steps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
big_pipe.feature
38 lines (34 loc) · 1.5 KB
/
big_pipe.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
Feature: Check that BigPipeTrait works for or D9
@api
Scenario: Assert that Big Pipe cookie is set
Given I install a "big_pipe" module
When I visit "/"
Then cookie "big_pipe_nojs" exists
@api @behat-steps-skip:bigPipeBeforeScenarioInit
Scenario: Assert that Big Pipe cookie is not set when skip tag is used
Given I install a "big_pipe" module
When I visit "/"
Then cookie "big_pipe_nojs" does not exist
@api
Scenario: Assert that Big Pipe cookie is preserved across multiple users in a scenario
Given users:
| name | mail | roles | status |
| administrator_user | [email protected] | administrator | 1 |
And I install a "big_pipe" module
When I visit "/"
Then cookie "big_pipe_nojs" exists
And I am logged in as "administrator_user"
And I visit "/"
Then cookie "big_pipe_nojs" exists
@api @behat-steps-skip:bigPipeBeforeStep
Scenario: Assert that Big Pipe cookie is not preserved across multiple users when skip tag is used
Given users:
| name | mail | roles | status |
| administrator_user | [email protected] | administrator | 1 |
And I install a "big_pipe" module
When I visit "/"
Then cookie "big_pipe_nojs" exists
# Logging in as a new user removes cookies.
And I am logged in as "administrator_user"
When I visit "/"
Then cookie "big_pipe_nojs" does not exist