Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from documente/add-be-hidden-assertion
Browse files Browse the repository at this point in the history
Add "be hidden" assertion
  • Loading branch information
pckerneis authored Jan 1, 2024
2 parents 16d5087 + bbbf5f2 commit c5d164d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/instructions-builder/builtin-assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Token } from '../interfaces/token.interface';
export const BuiltinAssertionCodes = [
'have text',
'be visible',
'be hidden',
'contain text',
'have value',
'have class',
Expand All @@ -31,6 +32,7 @@ export interface BuiltinAssertionTextPart {
export const BuiltinAssertionPatterns: Record<string, BuiltinAssertionCode> = {
'have text {{text}}': 'have text',
'be visible': 'be visible',
'be hidden': 'be hidden',
'contain text {{text}}': 'contain text',
'have value {{value}}': 'have value',
'have class {{value}}': 'have class',
Expand Down

0 comments on commit c5d164d

Please sign in to comment.