Commit 18783ea0 authored by David Snopek's avatar David Snopek
Browse files

Issue #3275349 by dsnopek: Update automated tests to use Chrome 100

parent 825846fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
    "require-dev": {
        "consolidation/robo": "^1.4",
        "spomky-labs/otphp": "^9.0",
        "behat/mink-selenium2-driver": "dev-master"
        "friends-of-behat/mink-extension": "^2.5"
    },
    "replace": {
        "drupal/panopoly_core": "self.version",
+8 −11
Original line number Diff line number Diff line
@@ -18,17 +18,14 @@ default:
      selenium2:
        browser: chrome
        capabilities:
          browser: chrome
          browserName: chrome
          browserVersion: ANY
          chrome:
            switches:
              - "--headless"
              - "--disable-gpu"
          marionette: true
          extra_capabilities:
            chromeOptions:
              w3c: false
              args:
                # Try to prevent random crashes: https://stackoverflow.com/a/53970825/1949744
                - "--no-sandbox"
                - "--disable-dev-shm-usage"
          version: ANY
      #base_url: http://mydrupalsite.com
      #files_path: './profiles/contrib/panopoly/modules/panopoly/panopoly_test/tests'
    Drupal\DrupalExtension:
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ default:
      base_url: 'http://appserver'
      files_path: './profiles/contrib/panopoly/modules/panopoly/panopoly_test/behat/'
      selenium2:
        wd_host: http://chromedriver:4444/wd/hub
        wd_host: http://selenium:4444/wd/hub
      ajax_timeout: 10
    Drupal\DrupalExtension:
      drush:
+1 −1
Original line number Diff line number Diff line
@@ -31,8 +31,8 @@ Feature: Add spotlight widget
      And I wait for AJAX to finish
      And I fill in "Alternative text" with "Testing alt text"
      And I press "Select"
    When I switch out of all frames
    And I wait for AJAX to finish
    And I take a screenshot
    And I press "Save" in the "Settings tray" region
      And I press "Save layout"
    Then I should see "Testing description"
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ Feature: Add media using the rich text editor
    # Fields for the image.
    And I fill in "Alternative text" with "Sample alt text"
      And I press "Select"
      And I switch out of all frames
    # The media style selector.
    And I wait for AJAX to finish
      And I select "view_mode:media.embed_medium" from "Display as"
@@ -67,6 +68,7 @@ Feature: Add media using the rich text editor
    # for it - so, that we can test that the 2nd overrides.
    When I fill in "Alternative text" with "Sample alt text"
      And I press "Select"
	  And I switch out of all frames
    And I wait for AJAX to finish
    # @todo keeps hanging onto previous element, not current one.
    # Then the "attributes[data-entity-embed-display-settings][alt]" field placeholder should contain "Sample Alt text"
@@ -102,6 +104,7 @@ Feature: Add media using the rich text editor
    # for it - so, that we can test that the 2nd overrides.
    When I fill in "Alternative text" with "Alt & some > \"character's\" <"
    And I press "Select"
    And I switch out of all frames
    And I wait for AJAX to finish
    And I press "Embed" in the "Dialog buttons" region
    # Save the whole node.
@@ -162,6 +165,7 @@ Feature: Add media using the rich text editor
      And I click "Add remote video"
      And I fill in "Video URL" with "https://www.youtube.com/watch?v=W_-vFa-IyB8"
      And I press "Select"
      And I switch out of all frames
    Then I should see "Minecraft: Development history"
    And I select "view_mode:media.embed_large" from "Display as"
      And I wait for AJAX to finish
@@ -184,6 +188,7 @@ Feature: Add media using the rich text editor
      And I click "Add remote video"
      And I fill in "Video URL" with "https://vimeo.com/59482983"
      And I press "Select"
      And I switch out of all frames
      And I wait for AJAX to finish
    Then I should see "Panopoly by Troels Lenda"
    And I select "view_mode:media.embed_large" from "Display as"
Loading