spec/ui_selenium/pages/api_my_academics_page_semesters.rb
# Semester cards show course codes differently depending on enrollment data, primary sections, and transcript data
Semester cards show course codes differently depending on enrollment data, primary sections, and transcript data
Semester cards show course codes differently depending on enrollment data primary sections and transcript data
def semester_card_course_codes(semesters, semester, courses)
    codes = []
    courses.each do |course|
      if has_enrollment_data?(semester)
        if past_semesters(semesters).include?(semester)
          if course_transcripts(course).nil?
            course_primary_sections(course).each { codes << course_code(course) }
          else
            course_transcripts(course).each { codes << course_code(course) }
          end
        elsif !past_semesters(semesters).include?(semester) && multiple_primaries?(course)
          course_primary_sections(course).each { |section| codes << "#{course_code(course)} #{section_label(section)}" }
        else
          codes << course_code(course)
        end
      else
        codes << course_code(course)
      end
    end
    codes
  end
def semester_card_course_codes ( semesters , semester , courses ) codes = [ ] courses . each do | course | if has_enrollment_data? ( semester ) if past_semesters ( semesters ) . include? ( semester ) if course_transcripts ( course ) . nil? course_primary_sections ( course ) . each { codes << course_code ( course ) } else course_transcripts ( course ) . each { codes << course_code ( course ) } end elsif ! past_semesters ( semesters ) . include? ( semester ) && multiple_primaries? ( course ) course_primary_sections ( course ) . each { | section | codes << "#{course_code(course)} #{section_label(section)}" } else codes << course_code ( course ) end else codes << course_code ( course ) end end codes end
Semester cards show course codes differently depending on enrollment data, primary sections, and transcript data
Semester cards show course codes differently depending on enrollment data primary sections and transcript data
semesters
<not_specific>
semester
<not_specific>
courses
<not_specific>