Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Nov 4, 2024
1 parent 8d04b69 commit 52d4a97
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/behat/features/selenium.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,48 +23,48 @@ Feature: Selenium screenshots
@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page
And I save screenshot with name "{datetime:U}.{url_domain}.{url_path}.{ext}"
And I save screenshot with name "test.{url_domain}.{url_path}.{ext}"
Then file wildcard "*.phpserver.screenshot.html.png" should exist
Then file wildcard "*.phpserver.screenshot.html.html" should exist

@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page
And I save screenshot with name "{datetime:U}.{url_origin}.{ext}"
And I save screenshot with name "test.{url_origin}.{ext}"
Then file wildcard "*.http%3A%2F%2Fphpserver.png" should exist
Then file wildcard "*.http%3A%2F%2Fphpserver.html" should exist

@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page
And I save screenshot with name "{datetime:U}.{url}.{ext}"
And I save screenshot with name "test.{url}.{ext}"
Then file wildcard "*.http%3A%2F%2Fphpserver%3A8888%2Fscreenshot.html.png" should exist
Then file wildcard "*.http%3A%2F%2Fphpserver%3A8888%2Fscreenshot.html.html" should exist

@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page with query "foo=test-foo" and fragment "foo-fragment"
And I save screenshot with name "{datetime:U}.{url_query}.{url_fragment}.{ext}"
And I save screenshot with name "test.{url_query}.{url_fragment}.{ext}"
Then file wildcard "*.foo%3Dtest-foo.foo-fragment.png" should exist
Then file wildcard "*.foo%3Dtest-foo.foo-fragment.html" should exist

@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page with query "foo=test-foo" and fragment "foo-fragment"
And I save screenshot with name "{datetime:U}.{url_relative}.{ext}"
And I save screenshot with name "test.{url_relative}.{ext}"
Then file wildcard "*.screenshot.html%3Ffoo%3Dtest-foo%23foo-fragment.png" should exist
Then file wildcard "*.screenshot.html%3Ffoo%3Dtest-foo%23foo-fragment.html" should exist

@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page with query "foo=test-foo" and fragment "foo-fragment"
And I save screenshot with name "{datetime:U}.{url}.{ext}"
And I save screenshot with name "test.{url}.{ext}"
Then file wildcard "*.http%3A%2F%2Fphpserver%3A8888%2Fscreenshot.html%3Ffoo%3Dtest-foo%23foo-fragment.png" should exist
Then file wildcard "*.http%3A%2F%2Fphpserver%3A8888%2Fscreenshot.html%3Ffoo%3Dtest-foo%23foo-fragment.html" should exist

@phpserver @javascript
Scenario: Capture a screenshot with name using Selenium driver
When I am on the screenshot test page with query "foo=test-foo" and fragment "foo-fragment"
And I save screenshot with name "{datetime:U}.{step_line}.{step_name}.{ext}"
Then file wildcard "*.I_save_screenshot_with_name_{datetime:U}.{step_line}.{step_name}.{ext}.png" should exist
Then file wildcard "*.I_save_screenshot_with_name_{datetime:U}.{step_line}.{step_name}.{ext}.html" should exist
And I save screenshot with name "test.{step_line}.{step_name}.{ext}"
Then file wildcard "*.I_save_screenshot_with_name_test.{step_line}.{step_name}.{ext}.png" should exist
Then file wildcard "*.I_save_screenshot_with_name_test.{step_line}.{step_name}.{ext}.html" should exist

0 comments on commit 52d4a97

Please sign in to comment.