import { itemsIsVisible , elementIsVisible } from '../actions/common' ; export async function expectItemsIsVisible ( selector , miniumNumber ) { expect ( await itemsIsVisible ( selector , miniumNumber ) ) . toBeTruthy ( ) ; } export async function expectItemIsVisible ( selector ) { expect ( await elementIsVisible ( selector ) ) . toBeTruthy ( ) ; } export function expectUrlToMatch ( regex ) { const condition = RegExp ( regex ) ; expect ( condition . test ( page . url ( ) ) ) . toBeTruthy ( ) ; }