Skip to content

Commit

Permalink
Replace await for a different classname (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichia authored Oct 29, 2020
1 parent 2e331c2 commit c1e4e9b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@
import { ROOT_URL } from '../helpers/e2e/constants';

import assertNoAxeViolations from '../helpers/e2e/assertNoAxeViolations';
import { getElementById } from '../helpers/e2e';
import { getElementByClassName } from '../helpers/e2e';

const rootURL = `${ROOT_URL}/example/components.tooltip.react/`;
const rootURL = `${ROOT_URL}/example/components.tooltip.tooltip/`;

describe('Tooltip component', () => {
it('Should render', async () => {
await driver.get(rootURL);

expect(await getElementById('tooltip-1-id')).toBeTruthy();
expect(await getElementById('tooltip-2-id')).toBeTruthy();
expect(await getElementById('tooltip-3-id')).toBeTruthy();
expect(await getElementByClassName('ds-c-tooltip__trigger')).toBeTruthy();
});

it('Should have no accessibility violations', async () => {
Expand Down

0 comments on commit c1e4e9b

Please sign in to comment.