Skip to content
Extraits de code Groupes Projets
Valider c57ef885 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

un-wip delete post feature

parent 91bfdf0e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -13,7 +13,7 @@ Feature: posting
And I am on the home page
Then I should see "I am eating a yogurt" within ".stream_element"
@javascript @wip
@javascript
Scenario: delete a post
Given I am signed in
And I have an aspect called "Family"
......@@ -23,8 +23,8 @@ Feature: posting
And I press "Share"
And I am on the home page
And I hover over the post
And I preemptively confirm the alert
And I press the first ".delete" within ".stream_element"
And I confirm the alert
And I am on the home page
Then I should not see "I am eating a yoghurt"
......
@javascript @wip
Feature: posting a message
Scenario: public messages
Given I am signed in
And I fill in "Post a message to all" with "ohai"
And I wait for the "Share" button to appear
And I press "Share"
Then I should see "ohai" in the main content area
\ No newline at end of file
......@@ -15,9 +15,8 @@ And /^I hover over the post$/ do
page.execute_script('$(".stream_element").first().mouseover()')
end
And /^I confirm the alert$/ do
a = page.driver.browser.switch_to.alert
a.accept
And /^I preemptively confirm the alert$/ do
a = page.evaluate_script("window.confirm = function() { return true; }")
end
When /^(.*) in the modal window$/ do |action|
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter