Move admin logs spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
This commit is contained in:
parent
18201ace36
commit
e16bc50d36
4 changed files with 19 additions and 19 deletions
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Move admin logs spinach test to rspec
|
||||||
|
merge_request: 7945
|
||||||
|
author: Semyon Pupkov
|
|
@ -1,8 +0,0 @@
|
||||||
@admin
|
|
||||||
Feature: Admin Logs
|
|
||||||
Background:
|
|
||||||
Given I sign in as an admin
|
|
||||||
|
|
||||||
Scenario: On Admin Logs
|
|
||||||
Given I visit admin logs page
|
|
||||||
Then I should see tabs with available logs
|
|
|
@ -1,11 +0,0 @@
|
||||||
class Spinach::Features::AdminLogs < Spinach::FeatureSteps
|
|
||||||
include SharedAuthentication
|
|
||||||
include SharedPaths
|
|
||||||
include SharedAdmin
|
|
||||||
|
|
||||||
step 'I should see tabs with available logs' do
|
|
||||||
expect(page).to have_content 'test.log'
|
|
||||||
expect(page).to have_content 'githost.log'
|
|
||||||
expect(page).to have_content 'application.log'
|
|
||||||
end
|
|
||||||
end
|
|
15
spec/features/admin/admin_browses_logs_spec.rb
Normal file
15
spec/features/admin/admin_browses_logs_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'Admin browses logs' do
|
||||||
|
before do
|
||||||
|
login_as :admin
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'shows available log files' do
|
||||||
|
visit admin_logs_path
|
||||||
|
|
||||||
|
expect(page).to have_content 'test.log'
|
||||||
|
expect(page).to have_content 'githost.log'
|
||||||
|
expect(page).to have_content 'application.log'
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue