Skip to content

Commit

Permalink
updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Sep 15, 2020
1 parent b4b2e51 commit 088c544
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ export function MachineLearningDataVisualizerFileBasedProvider(

async assertNumberOfFieldCards(number: number) {
const cards = await testSubjects.findAll('mlPageFileDataVisFieldDataCard');
if (cards.length !== number) {
throw new Error(`expected ${number} field cards to exist, but found ${cards.length}`);
}
expect(cards.length).to.eql(
number,
`expected ${number} field cards to exist, but found ${cards.length}`
);
},

async assertImportButtonEnabled(expectedValue: boolean) {
Expand Down

0 comments on commit 088c544

Please sign in to comment.