-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change assertion that element contains a specific CSS style #161
- Loading branch information
1 parent
a86a487
commit 18212f4
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
14 changes: 5 additions & 9 deletions
14
...nt-should_not-contain-cssproperty.feature → ...lement-should-contain-cssproperty.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
Feature: An example to test if the element contains a certain expected CSS property or not. | ||
Feature: An example to test if the element contains a certain expected CSS property. | ||
As a developer | ||
I want to be able to test if the element contains a certain expected CSS property or not. | ||
I want to be able to test if the element contains a certain expected CSS property. | ||
|
||
Scenario: Check element if the element contains a certain expected CSS property | ||
Given I am on "/test--then--the-element-should_not-contain-cssproperty.html" | ||
When I press "Submit" by attr | ||
Then the "body" element should contain "background-color:white;" | ||
|
||
Scenario: Check element if the element not contains a certain CSS property | ||
Given I am on "/test--then--the-element-should_not-contain-cssproperty.html" | ||
When I press "Submit" by attr | ||
Then the "#uname" element should not contain "border:solid 5px red;" | ||
Then I should see a "body" element by attr | ||
When I press "Submit" | ||
Then the "body" element should contain "background-color:white;" css style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters