From c5d5d10094914d9a470589d70f49212e11a529f6 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 5 May 2014 12:46:57 +1200 Subject: [PATCH] BUG Behat now uses explicit radio button behaviour --- tests/behat/features/create-a-page.feature | 2 +- tests/behat/features/insert-a-link.feature | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/behat/features/create-a-page.feature b/tests/behat/features/create-a-page.feature index a1a04ed9..c7051fd8 100644 --- a/tests/behat/features/create-a-page.feature +++ b/tests/behat/features/create-a-page.feature @@ -9,6 +9,6 @@ Feature: Create a page And I go to "/admin/pages" And I should see a "Add new" button in CMS Content Toolbar When I press the "Add new" button - And I check "Page" + And I select the "Page" radio button And I press the "Create" button Then I should see an edit page form diff --git a/tests/behat/features/insert-a-link.feature b/tests/behat/features/insert-a-link.feature index 0da0ec0e..c64ee80e 100644 --- a/tests/behat/features/insert-a-link.feature +++ b/tests/behat/features/insert-a-link.feature @@ -15,7 +15,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to an internal page Given I select "awesome" in the "Content" HTML field And I press the "Insert Link" button - When I check "Page on the site" + When I select the "Page on the site" radio button And I fill in the "Page" dropdown with "Home" And I fill in "my desc" for "Link description" And I press the "Insert" button @@ -27,7 +27,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to an external URL Given I select "awesome" in the "Content" HTML field And I press the "Insert Link" button - When I check "Another website" + When I select the "Another website" radio button And I fill in "http://silverstripe.org" for "URL" And I check "Open link in a new window" And I press the "Insert" button @@ -38,7 +38,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to a file Given I select "awesome" in the "Content" HTML field When I press the "Insert Link" button - When I check "Download a file" + When I select the "Download a file" radio button And I fill in the "File" dropdown with "file1.jpg" And I press the "Insert link" button Then the "Content" HTML field should contain "awesome" @@ -49,7 +49,7 @@ So that I can link to a external website or a page on my site Given I fill in the "Content" HTML field with "

My awesome content

" And I select "awesome" in the "Content" HTML field When I press the "Insert Link" button - When I check "Anchor on this page" + When I select the "Anchor on this page" radio button # Need to hard-code the id attribute of the