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
const Kompot = require('kompot'); | |
const component = Kompot.kompotRequire('./Dropdown'); | |
describe('Dropdown', () => { | |
it('Should display a list of items', async () => { | |
await component.withProps({items: ['a','b','c']}).mount(); | |
await element(by.id('dropdownTitle')).tap(); | |
await expect(element(by.text('a'))).toBeVisible(); | |
await expect(element(by.text('b'))).toBeVisible(); | |
await expect(element(by.text('c'))).toBeVisible(); | |
}); |
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
import * as React from 'react'; | |
import './DevTools.css'; | |
import { observer, useExperimentalSerialization, Controller } from 'controllerim'; | |
import * as JSONPretty from 'react-json-pretty'; | |
useExperimentalSerialization(); // enables the auto indexing mechanism | |
export const DevTools = observer(class extends React.Component { | |
constructor(props) { | |
super(props); |