-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Tooltip): add feature to add message to the dom root with portal
- Loading branch information
Showing
4 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
Binary file added
BIN
+4.59 KB
...apshots__/tooltip-test-js-components-tooltip-with-click-trigger-open-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { baisy } from '../setup/TestSuiter'; | ||
|
||
|
||
const SUITES = [ | ||
baisy.suite('Components/Tooltip', 'with click trigger', 'open') | ||
.addRootHeight(50) | ||
.setEnhancer(async (iframe) => { | ||
const icon = await iframe.waitForXPath('//i'); | ||
await icon.click(); | ||
|
||
const message = await iframe.waitForXPath('//*[contains(@class,"ignore-react-onclickoutside")]'); | ||
await message.click(); | ||
}), | ||
]; | ||
|
||
|
||
SUITES.map(suite => { | ||
it(suite.getTestName(), suite.testStory, 20000); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters