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 = '/tabindex-none';
  
  describe('Tab navigation without tabindex', () => {
      before(async () => {
          await browser.url(URL);
      });
  
      it('should delegate focus (forward)', async () => {
          const secondOutside = await browser.shadowDeep$(
              'integration-tabindex-none',
              '.second-outside'
          );
          await secondOutside.click();
          await browser.keys(['Tab']);
  
          const activeElement = await browser.activeElementShadowDeep();
          assert.strictEqual(await activeElement.getAttribute('class'), 'first-inside');
      });
  
      it('should delegate focus (backward)', async () => {
          const thirdOutside = await browser.shadowDeep$(
              'integration-tabindex-none',
              '.third-outside'
          );
          await thirdOutside.click();
          await browser.keys(['Shift', 'Tab', 'Shift']);
  
          const activeElement = await browser.activeElementShadowDeep();
          assert.strictEqual(await activeElement.getAttribute('class'), 'third-inside');
      });
  });
  