-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
behat_smoke.feature
30 lines (24 loc) · 1.2 KB
/
behat_smoke.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
@smoke
Feature: Behat feature context smoke tests
Assertions for feature context steps (in FeatureContext.php) that are used
to test the Behat-steps step definitions defined in `src`.
Basically, tests for tests, which are testing our steps provided by this package.
@api
Scenario: Assert that a module can be installed and uninstalled
Given I am logged in as a user with the "administer site configuration, administer modules" permissions
When I go to "/admin/modules"
And the response status code should be 200
Then the "modules[book][enable]" checkbox should be unchecked
When I install a "book" module
And I go to "/admin/modules"
And the response status code should be 200
Then the "modules[book][enable]" checkbox should be checked
When I uninstall a "book" module
And I go to "/admin/modules"
And the response status code should be 200
Then the "modules[book][enable]" checkbox should be unchecked
@api
Scenario: Assert that a cookie presence and absence assertions work
Given I am logged in as a user with the "administer site configuration" permissions
Then cookie "testcookiename" exists
And cookie "testcookiename_nonexisting" does not exist