░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/spec/selenium/discussions/pages
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: discussions_new_edit_page.rb
# frozen_string_literal: true # # Copyright (C) 2017 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see <http://www.gnu.org/licenses/>. require_relative "../../common" class DiscussionNewEdit class << self include SeleniumDependencies # ---------------------- Page ---------------------- def visit(course) get("/courses/#{course.id}/discussion_topics/new") end def new_discussion_url "/discussion_topics/new" end def individual_discussion_url(discussion) "/discussion_topics/#{discussion.id}" end # ---------------------- Controls ---------------------- def section_autocomplete_css "#sections_autocomplete_root input[type='text']" end def submit_discussion_form submit_form(".form-actions") end def add_message(message) type_in_tiny("textarea[name=message]", message) end def add_title(title) replace_content(f("input[name=title]"), title) end def section_error f("#sections_autocomplete_root").text end def section_disabled_item f("#disabled_sections_autocomplete") end def graded_checkbox f("#use_for_grading") end def select_a_section(section_name) fj(section_autocomplete_css).click if section_name.empty? driver.action.send_keys(:backspace).perform else set_value(fj(section_autocomplete_css), section_name) driver.action.send_keys(:enter).perform end wait_for_ajax_requests end end end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 discussion_page.rb
RB
2.1 KB
2023-09-24 03:39
EDIT
📄 discussions_index_page.rb
RB
5.8 KB
2023-09-24 03:36
EDIT
📄 discussions_new_edit_page.rb
RB
2 KB
2023-09-24 03:36
EDIT