text: /*
   * Copyright (c) 2018, salesforce.com, inc.
   * All rights reserved.
   * SPDX-License-Identifier: MIT
   * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
   */
  const assert = require('assert');
  const URL = 'http://localhost:4567/shift-tab-into-negative-tabindex';
  
  describe('Delegates focus', () => {
      beforeEach(() => {
          browser.url(URL);
      });
  
      it('should focus the input when clicked', function() {
          browser
              .execute(function() {
                  return document
                      .querySelector('integration-shift-tab-into-negative-tabindex')
                      .shadowRoot.querySelector('.bottom');
              })
              .click();
  
          browser.keys(['Shift', 'Tab', 'Shift']); // tab backwards over integration-child
  
          const className = browser.execute(function() {
              const container = document.activeElement;
              const activeElement = container.shadowRoot.activeElement;
              return activeElement.className;
          }).value;
  
          assert.equal(className, 'top');
      });
  });
  