Skip to content

Commit

Permalink
test: fix conditionSet default condition name test
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Aug 14, 2023
1 parent 1e8b310 commit 745880d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ test.describe('Basic Condition Set Use', () => {
name: 'Test Condition Set'
});
});
test('Creating a condition defaults the condition name to Unnamed Condition', async ({
test('Creating a condition defaults the condition name to "Unnamed Condition"', async ({
page
}) => {
await page.goto(conditionSet.url);
Expand All @@ -230,7 +230,9 @@ test.describe('Basic Condition Set Use', () => {
// Click Add Condition button
await page.locator('#addCondition').click();
// Check that the new Unnamed Condition section appears
const numOfUnnamedConditions = await page.locator('text=Unnamed Condition').count();
const numOfUnnamedConditions = await page
.locator('.c-condition__name', { hasText: 'Unnamed Condition' })
.count();
expect(numOfUnnamedConditions).toEqual(1);
});
test('ConditionSet should display appropriate view options', async ({ page }) => {
Expand Down

0 comments on commit 745880d

Please sign in to comment.