Skip to content

Make search test less brittle.#3635

Closed
arikfr wants to merge 1 commit into
masterfrom
search-test-cr
Closed

Make search test less brittle.#3635
arikfr wants to merge 1 commit into
masterfrom
search-test-cr

Conversation

@arikfr

@arikfr arikfr commented Mar 24, 2019

Copy link
Copy Markdown
Member

What type of PR is this? (check all applicable)

  • Refactor

Description

Improve tests based on feedback from @gabrieldutra and @ranbena.

@arikfr arikfr mentioned this pull request Mar 24, 2019
1 task
cy.getByTestId("QueriesList").should(queriesList => {
expect(queriesList).to.contain("Users Count");
expect(queriesList).not.to.contain("Dashboards Count");
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicer syntax (untested):

cy.getByTestId('QueriesList')
  .should('contain', 'Users Count')
  .and('not.contain', 'Dashboards Count');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping 🔔

@arikfr arikfr closed this Jan 21, 2020
@arikfr
arikfr deleted the search-test-cr branch January 21, 2020 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants