It's Riseup's twentieth year, help keep us going! If you can afford it, please contribute to our winter fundraising drive.

Commit c2e3cc87 authored by azul's avatar azul

Merge branch 'cleanup/test-fixtures' into 'staging'

test: bring back transactional fixtures in js tests

See merge request !277
parents 98ef7622 b91c06e3
......@@ -6,9 +6,9 @@ class RankedVoteTest < JavascriptIntegrationTest
def setup
super
own_page :ranked_vote_page
login
click_link own_page.title
prepare_page :ranked_vote_page
click_on :create.t
end
def test_initial_option
......
......@@ -2,9 +2,6 @@
require 'javascript_integration_test'
class CommentJavascriptTest < JavascriptIntegrationTest
fixtures :users, :groups
def setup
super
@blue = users(:blue)
......
require 'javascript_integration_test'
class DismissAllNoticesTest < JavascriptIntegrationTest
fixtures :users, :notices
def test_dismiss_all_notices_updates_page
login users(:blue)
msg = 'hey, check out this page'
......
require 'javascript_integration_test'
class GroupSettingsTest < JavascriptIntegrationTest
fixtures :users, 'group/memberships', :groups, :profiles
def setup
super
......
......@@ -4,8 +4,6 @@ class GroupWikiTest < JavascriptIntegrationTest
include Capybara::DSL
include Integration::Wiki
fixtures :users, :groups, 'group/memberships', :profiles
# let's not wait for wiki lock requests.
# They are triggered automatically when leaving the settings window
# Since they run after the page was left their response will not
......
......@@ -3,8 +3,6 @@ require 'javascript_integration_test'
class MessagingTest < JavascriptIntegrationTest
include Integration::Comments
fixtures :users, 'castle_gates/keys'
def test_send_message
login users(:blue)
send_message text, to: 'red'
......
......@@ -2,8 +2,6 @@ require 'javascript_integration_test'
class PageCreationTest < JavascriptIntegrationTest
fixtures :users, :groups, 'group/memberships'
def test_share_with_users
login
prepare_page :discussion_page
......
......@@ -5,8 +5,6 @@ require 'javascript_integration_test'
class PageSearchTest < JavascriptIntegrationTest
include Integration::Search
fixtures :all
def test_sphinx
user = users(:blue)
page = user.pages.first
......
......@@ -3,9 +3,6 @@
require 'javascript_integration_test'
class PageSidebarJavascriptTest < JavascriptIntegrationTest
fixtures :users, :groups, 'group/memberships', :pages
def setup
super
@user = users(:blue)
......
......@@ -5,8 +5,6 @@ require_relative '../helpers/integration/javascript/page_actions.rb'
class PageSidebarTest < IntegrationTest
include PageActions
fixtures :users, :groups, 'group/memberships', :pages
def setup
super
@user = users(:blue)
......
require 'javascript_integration_test'
class PageTrashTest < JavascriptIntegrationTest
fixtures :all
def setup
super
@user = users(:blue)
......
require 'javascript_integration_test'
class PeopleDirectoryTest < JavascriptIntegrationTest
fixtures :users, 'castle_gates/keys'
def setup
super
......
......@@ -4,8 +4,6 @@ require 'javascript_integration_test'
class TagSuggestionTest < JavascriptIntegrationTest
fixtures :all
def test_tag_from_user_suggestion
create_user_page tag_list: %w[summer winter],
created_by: users(:dolphin)
......
require 'test_helper'
require 'javascript_integration_test'
class TaskOverviewTest < JavascriptIntegrationTest
fixtures :users, :pages, 'page/terms', :tasks, 'task/participations'
def test_list_only_pages_with_assigned_tasks
login users(:blue)
visit '/me/tasks'
......
......@@ -12,6 +12,7 @@ class JavascriptIntegrationTest < IntegrationTest
include Autocomplete
Capybara.javascript_driver = :poltergeist
self.use_transactional_tests = false
def setup
super
......
......@@ -2,8 +2,6 @@ require 'test_helper'
class Page::TagSuggestionsTest < ActiveSupport::TestCase
fixtures :all
def test_empty
assert_equal [], suggest_tags(nil, users(:blue))
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment