__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@mod @mod_forum @javascript
Feature: A teacher or admin can view breadcrumbs in the reply, delete, split, edit and add discussion advanced pages
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher | Teacher | Tom | teacher@example.com |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher | C1 | editingteacher |
And the following "activity" exists:
| course | C1 |
| activity | forum |
| name | Test forum name |
| idnumber | forum1 |
Scenario: A teacher views add discussion topics advanced page
Given I am on the "Test forum name" "forum activity" page logged in as teacher
And I click on "Add discussion topic" "link"
When I click on "Advanced" "button"
And I should see "Add discussion topic"
Then I should see "Add discussion topic" in the ".breadcrumb" "css_element"
And I should see "Test forum name" in the ".breadcrumb" "css_element"
Scenario: A teacher adds posts and then verifies the breadcrumbs in the links
Given the following "mod_forum > discussions" exist:
| user | forum | name | message |
| teacher | forum1 | Test post subject one | Test post message one |
And the following "mod_forum > posts" exist:
| user | parentsubject | subject | message |
| teacher | Test post subject one | Reply 1 to discussion 1 | Discussion contents 1, second message |
And I am on the "Test forum name" "forum activity" page logged in as teacher
And I follow "Test post subject one"
When I follow "Edit"
Then I should see "Edit discussion topic"
And I should see "Edit discussion topic" in the ".breadcrumb" "css_element"
And I should see "Test post subject one" in the ".breadcrumb" "css_element"
And I click on "Cancel" "button"
And I follow "Delete"
And I should not see "Test forum description"
And I should see "Delete" in the ".breadcrumb" "css_element"
And I click on "Cancel" "button"
And I follow "Reply"
And I click on "Advanced" "button"
And I should not see "Test forum description"
And I should see "Reply to discussion"
And I should see "Add reply" in the ".breadcrumb" "css_element"
And I click on "Cancel" "button"
And I follow "Split"
And I should not see "Test forum description"
And I should see "Split discussion" in the ".breadcrumb" "css_element"
And I click on "Cancel" "button"