mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-20 21:25:23 +08:00
20 lines
416 B
Ruby
Vendored
20 lines
416 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
describe "Admin Watched Words", type: :system, js: true do
|
|
fab!(:current_user) { Fabricate(:admin) }
|
|
|
|
before { sign_in(current_user) }
|
|
|
|
let(:ww_page) { PageObjects::Pages::AdminWatchedWords.new }
|
|
|
|
it "correctly saves watched words" do
|
|
ww_page.visit
|
|
ww_page.add_word "foo"
|
|
|
|
expect(ww_page).to have_word
|
|
|
|
ww_page.visit
|
|
|
|
expect(ww_page).to have_word
|
|
end
|
|
end
|