All Scenarios

20

Passed Scenarios

20

Failed Scenarios

0
As the site owner
I want one user per role created through the admin UI
So that the editor, formatter and filter scenarios have what they expect

Given I am a logged in user with the "Webmaster" user 4s 589ms

And I add testing users 3s 333ms

When I navigate to "/admin/config/content/formats" 897ms

Then the "drupal page heading" element should contain text "Text formats" 4ms

And there should be no JavaScript errors < 1ms

As a site administrator
I want the module's editor, formatter and filter to be available
So that the Ace Editor integration can be exercised

Given I am a logged in user with the "Webmaster" user 1s 912ms

When I navigate to "/admin/config/content/formats/manage/full_html" 1s 131ms

Then the "format editor select" element should be visible 16ms

And the "ace settings fieldset" element should be visible 7ms

And there should be no JavaScript errors < 1ms

Given I am a logged in user with the "Webmaster" user 2s 135ms

When I navigate to "/admin/config/content/formats" 774ms

Then the "drupal page heading" element should contain text "Text formats" 3ms

And I should see "Full HTML" 8ms

As a content editor
I want the Ace editor to replace the plain body textarea
So that I edit raw HTML with syntax highlighting

Given I am a logged in user with the "Webmaster" user 1s 868ms

When I navigate to "/node/2/edit" 2s 945ms

Then the global Ace library should be available 3ms

And the Drupal editor "ace_editor" should be registered 2ms

And the Ace editor should be attached to the "body textarea" field 2ms

And the "ace editor container" element should have a count of 1 2ms

And the "ace editor gutter cell" element should have at least a count of 1 4ms

And there should be no JavaScript errors < 1ms

As a content editor
I want my edits in the Ace editor to reach the hidden textarea
So that the form submits the code I typed

Given I am a logged in user with the "Webmaster" user 1s 854ms

When I navigate to "/node/2/edit" 3s 20ms

And the Ace editor should be attached to the "body textarea" field 3ms

And I type "<h2>Synced from Ace</h2>" into the Ace editor 706ms

Then the "body textarea" field value should contain "<h2>Synced from Ace</h2>" 6ms

And there should be no JavaScript errors < 1ms

As a content editor
I want the "Show print margin" setting to actually show the margin
So that the configured 80-character guide appears

Given I am a logged in user with the "Webmaster" user 1s 851ms

When I navigate to "/node/2/edit" 2s 812ms

Then the Ace editor should be attached to the "body textarea" field 19ms

And the "ace editor print margin" element should be attached 5ms

And the "ace editor print margin" element should show the print margin 3ms

And there should be no JavaScript errors < 1ms

As a site administrator
I want the Ace editor settings to render on the text format form
So that I can configure the theme, syntax and options

Given I am a logged in user with the "Webmaster" user 2s 38ms

When I navigate to "/admin/config/content/formats/manage/full_html" 892ms

Then the "ace settings fieldset" element should be visible 5ms

And the "ace theme select" element should be visible 13ms

And the "ace syntax select" element should be visible 16ms

And the "ace height field" element should be visible 4ms

And the "ace line numbers checkbox" element should be attached 4ms

And the "ace print margin checkbox" element should be attached 3ms

And the "ace autocomplete label" element should be visible 3ms

And there should be no JavaScript errors < 1ms

As a content editor
I want the Find (Ctrl-F) keyboard shortcut to work in the editor
So that I can search the code I am editing

Given I am a logged in user with the "Webmaster" user 1s 920ms

When I navigate to "/node/2/edit" 2s 804ms

Then the "ace editor container" element should be visible 4ms

When I press the "Control+f" key in the "ace editor container" element 670ms

Then the "ace search box" element should be visible 4ms

And there should be no JavaScript errors < 1ms

As a content editor
I want Ace to respect a form field that has been disabled
So that a read-only field cannot be edited through the editor

Given I am a logged in user with the "Webmaster" user 2s 310ms

When I navigate to "/node/2/edit?ace_test_disable_body=1" 2s 983ms

Then the "ace editor container" element should be visible 2ms

And the "ace editor readonly input" element should be attached 3ms

When I type "TYPED_INTO_DISABLED" into the Ace editor with the keyboard 1s 375ms

Then the Ace editor content should not contain "TYPED_INTO_DISABLED" 3ms

And there should be no JavaScript errors < 1ms

Given I am a logged in user with the "Webmaster" user 1s 865ms

When I navigate to "/node/2/edit" 2s 783ms

Then the "ace editor container" element should be visible 3ms

And the "ace editor readonly input" element should have a count of 0 2ms

When I type "TYPED_INTO_ENABLED" into the Ace editor with the keyboard 1s 360ms

Then the Ace editor content should contain "TYPED_INTO_ENABLED" 2ms

And there should be no JavaScript errors < 1ms

As a content editor
I want a plain long text field to use the Ace editor
So that I can edit code in a field that carries no text format

Given I am a logged in user with the "Webmaster" user 1s 920ms

When I navigate to "/node/add/article" 2s 608ms

Then the global Ace library should be available 2ms

And the "ace code widget container" element should be visible 4ms

And the "ace code widget twilight theme" element should have a count of 1 2ms

And the Ace widget "field_ace_code" should use the "css" mode 2ms

And there should be no JavaScript errors < 1ms

Given I am a logged in user with the "Webmaster" user 1s 840ms

When I navigate to "/node/2/edit" 2s 724ms

Then the "ace code widget container" element should be visible 4ms

And the "ace code widget gutter cell" element should have at least a count of 1 3ms

And there should be no JavaScript errors < 1ms

As a test engineer
I want a field that holds a .feature script to use the Gherkin mode
So that I can write and read Gherkin in the site itself

Given I am a logged in user with the "Webmaster" user 1s 915ms

When I navigate to "/node/add/article" 2s 870ms

Then the global Ace library should be available 3ms

And the "ace gherkin widget container" element should be visible 6ms

And the Ace widget "field_gherkin_script" should use the "gherkin" mode 2ms

And the "ace gherkin widget gutter cell" element should have at least a count of 1 4ms

And there should be no JavaScript errors < 1ms

Given I am a logged in user with the "Webmaster" user 1s 972ms

When I navigate to "/node/2/edit" 2s 834ms

Then the "ace gherkin widget container" element should be visible 4ms

And the Ace widget "field_gherkin_script" should use the "gherkin" mode 1ms

And the Ace widget "field_gherkin_script" content should contain "Scenario: The editor highlights the script" 2ms

And the Ace widget "field_gherkin_script" content should contain " Given I am a logged in user" 1ms

And there should be no JavaScript errors < 1ms

As a site visitor
I want code fields displayed with read-only syntax highlighting
So that snippets are easy to read

Given I am an anonymous user 960ms

When I navigate to "/node/2" 2s 510ms

Then the global Ace library should be available 3ms

And the Drupal behavior "ace_formatter" should be registered 3ms

And the "ace formatter wrap" element should be visible 4ms

And the "ace formatter container" element should have a count of 1 3ms

And the "ace formatter gutter cell" element should have at least a count of 1 2ms

And there should be no JavaScript errors < 1ms

As a site builder
I want to set an Ace Format field's height to "auto"
So that the editor grows to fit its content instead of a fixed height

Given I am an anonymous user 745ms

When I navigate to "/node/2" 2s 218ms

Then the global Ace library should be available 2ms

And the "ace formatter container" element should be visible 4ms

And the "ace formatter container" element should be taller than 20 pixels within 15 seconds 3ms

And the "ace formatter gutter cell" element should have at least a count of 1 3ms

And there should be no JavaScript errors < 1ms

As a content author
I want … tags turned into highlighted, read-only editors
So that I can embed code snippets in body text

Given I am an anonymous user 2s 11ms

When I navigate to "/node/1" 2s 364ms

Then the global Ace library should be available 2ms

And the Drupal behavior "ace_filter" should be registered 2ms

And the "ace filter pre" element should have a count of 1 3ms

And the "ace filter container" element should be visible 4ms

And the "ace filter gutter cell" element should have at least a count of 1 2ms

And the "ace filter container" element should contain text "function hello" 3ms

And there should be no JavaScript errors < 1ms

As a content author
I want attributes on an tag to override the filter defaults
So that a single snippet can use a different theme or syntax

Given I am an anonymous user 809ms

When I navigate to "/node/1" 2s 204ms

Then the "ace filter container" element should be visible 3ms

And the "ace filter twilight theme" element should have a count of 1 3ms

And the "ace filter cobalt theme" element should have a count of 0 2ms

And there should be no JavaScript errors < 1ms

As a site owner
I want the module's pages to pass core a11y checks
So that the editor and rendered code are usable by everyone

Given I am a logged in user with the "Webmaster" user 2s 108ms

When I navigate to "/admin/config/content/formats/manage/full_html" 887ms

Then every form field should have an accessible label 18ms

And no element should have a positive tabindex 12ms

Given I am an anonymous user 642ms

When I navigate to "/node/1" 2s 226ms

Then every image should have an alt attribute 4ms

And every link should have an accessible name 2ms

And every ARIA role should be valid 2ms