Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 1.45 KB
#
# Copyright 2019 Brady Wood, Branko Juric
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Feature: Todo items visual test
Scenario: Add items in my Todo list
Given I launch the Todo app
And I start visual test as "Todo items" in 600 x 600 viewport
And I check viewport visual as "No Todo items" using STRICT match
When I add a "Walk the dog" item
And I add a "Get the milk" item
Then the number of active items should be "2"
And I check viewport visual as "Active Todo items" using STRICT match
Scenario: Complete one item
When I tick the "Get the milk" item
Then the number of active items should be "1"
And I check viewport visual as "One completed Todo item" using STRICT match
Scenario: Complete another item
When I tick the "Walk the dog" item
Then the number of active items should be "0"
And I check viewport visual as "All completed Todo items" using STRICT match
And the visual test should pass
You can’t perform that action at this time.