зеркало из https://github.com/nextcloud/news.git
added first cucumber steps and definitions
This commit is contained in:
Родитель
0d56e6e7e4
Коммит
e52e9332df
3
Makefile
3
Makefile
|
@ -20,7 +20,6 @@
|
|||
# release for the app store and running php unittests which require core
|
||||
|
||||
build_directory=build/
|
||||
app_name=news
|
||||
package_name=$(build_directory)$(app_name)
|
||||
|
||||
all: dist
|
||||
|
@ -30,7 +29,7 @@ clean:
|
|||
rm -rf $(build_directory)
|
||||
|
||||
|
||||
dist: clean test
|
||||
dist: clean
|
||||
mkdir -p $(build_directory)
|
||||
git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
# encoding: utf-8
|
||||
Feature: create_new
|
||||
In order to start using the news rss reader
|
||||
As a user
|
||||
I want to be able to add feeds and folders
|
||||
|
||||
Background:
|
||||
Given I am logged in
|
||||
And I am in the "news" app
|
||||
|
||||
Scenario Outline: show caption on hover
|
||||
When I hover over the add new button
|
||||
Then I should see a "Add Website" caption on the add new button
|
|
@ -0,0 +1,7 @@
|
|||
When (/^I hover over the add new button$/) do |selector|
|
||||
page.execute_script("$('.add-new').trigger('mouseover')")
|
||||
end
|
||||
|
||||
Then (/^I should see a "([^"]*)" caption on the add new button"$/) do |caption|
|
||||
page.find(:xpath, "//*[@class='add-new']/a/span").should have_content(caption)
|
||||
end
|
Загрузка…
Ссылка в новой задаче