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/tabindex-none';
  
  describe('Tab navigation without tabindex', () => {
      before(() => {
          browser.url(URL);
      });
  
      it('should delegate focus (forward)', function() {
          const secondOutside = browser.$(function() {
              return document
                  .querySelector('integration-tabindex-none')
                  .shadowRoot.querySelector('.second-outside');
          });
          secondOutside.click();
          browser.keys(['Tab']);
  
          var className = browser.execute(function() {
              var container = document.activeElement;
              var child = container.shadowRoot.activeElement;
              var input = child.shadowRoot.activeElement;
              return input.className;
          });
  
          assert.equal(className, 'first-inside');
      });
  
      it('should delegate focus (backward)', function() {
          const thirdOutside = browser.$(function() {
              return document
                  .querySelector('integration-tabindex-none')
                  .shadowRoot.querySelector('.third-outside');
          });
          thirdOutside.click();
          browser.keys(['Shift', 'Tab', 'Shift']);
  
          var className = browser.execute(function() {
              var container = document.activeElement;
              var child = container.shadowRoot.activeElement;
              var input = child.shadowRoot.activeElement;
              return input.className;
          });
  
          assert.equal(className, 'third-inside');
      });
  });
  