From ef02b3e16ed737ceb241bfbabb3b8061e813cf48 Mon Sep 17 00:00:00 2001 From: Valerie Thoma <31670582+ValerieThoma@users.noreply.github.com> Date: Tue, 5 Jun 2018 14:44:34 -0400 Subject: [PATCH] add html example to .not assertion (#678) --- source/api/commands/not.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/api/commands/not.md b/source/api/commands/not.md index 58e9bf8b20..c183713486 100644 --- a/source/api/commands/not.md +++ b/source/api/commands/not.md @@ -60,8 +60,18 @@ Option | Default | Description ***Yield the elements that do not have class `active`.*** +```html + +``` + ```javascript -cy.get('.left-nav>li').not('.active').should('not.have.class', 'active') // true +cy.get('ul>li').not('.active').should('have.length', 4) // true ``` # Rules