HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/elearningbasa.sumar.com.py/mod/lti/tests/behat/viewtools.feature
@mod @mod_lti
Feature: Navigate existing LTI tool types using pagination
  In order to manage reusable activities for teachers
  As an admin
  I need to view existing tools

  Background:
    Given 100 "mod_lti > tool types" exist with the following data:
      |name        |Test tool [count]                  |
      |description |Example description [count]        |
      |baseurl     |https://www.example.com/tool[count]|
    And I log in as "admin"
    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration

  @javascript
  Scenario: View first page of tool types.
    Then I should see "Test tool 30"
    And "Test tool 70" "text" should not be visible

  @javascript
  Scenario: View second page of tool types using page 2 button.
    When I click on "2" "link"
    Then I should see "Test tool 70"
    And "Test tool 30" "text" should not be visible

  @javascript
  Scenario: View last page of tool types using page 2 button.
    When I click on "Last" "link"
    Then I should see "Test tool 70"
    And "Test tool 30" "text" should not be visible