From e654b6dbd6514b609896949b4680f77dedfa016f Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 13 Oct 2022 13:10:49 +0800 Subject: [PATCH] MDL-75984 admin_presets: split test into smaller ones --- .../admin_presets/tests/behat/download.feature | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/admin/tool/admin_presets/tests/behat/download.feature b/admin/tool/admin_presets/tests/behat/download.feature index 16be3f888fe..2866028325f 100644 --- a/admin/tool/admin_presets/tests/behat/download.feature +++ b/admin/tool/admin_presets/tests/behat/download.feature @@ -1,18 +1,20 @@ @tool @tool_admin_presets Feature: I can download a preset - Background: - Given I log in as "admin" - And the following "tool_admin_presets > preset" exist: + Given the following "tool_admin_presets > preset" exist: | name | | Custom preset | - And I navigate to "Site admin presets" in site administration @javascript - Scenario: Core and custom preset settings can be downloaded + Scenario: Custom preset settings can be downloaded Given I log in as "admin" And I navigate to "Site admin presets" in site administration When I open the action menu in "Custom preset" "table_row" Then following "Download" "link" in the "Custom preset" "table_row" should download between "0" and "5000" bytes - And I open the action menu in "Starter" "table_row" - And following "Download" "link" in the "Starter" "table_row" should download between "0" and "5000" bytes + + @javascript + Scenario: Core preset settings can be downloaded + Given I log in as "admin" + And I navigate to "Site admin presets" in site administration + When I open the action menu in "Starter" "table_row" + Then following "Download" "link" in the "Starter" "table_row" should download between "0" and "5000" bytes