Skip to content

Commit 0ed0837

Browse files
committed
Update e2e test
1 parent bc14f54 commit 0ed0837

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests-playwright/components/complex_lookup/defaults_authority_class_number.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ test('Load a class number from a NAR', async ({ page }) => {
1515
await page.getByRole('listitem').filter({ hasText: '(DLC) QL737.C22add --Canidae' }).getByRole('button').click();
1616
await page.getByRole('button', { name: 'check' }).press('Shift+Enter');
1717
await page.getByRole('button', { name: 'Close' }).click();
18-
await page.locator('div').filter({ hasText: /^Classification numberClassWeb Search: QL737\.C22ClassWeb Browse: QL737\.C22$/ }).getByRole('textbox').click();
19-
await expect(page.getByRole('button', { name: 'bolt' })).toHaveCount(1);
18+
await expect(page.locator('[id="edit_lc:RT:bf2:Monograph:Work_id_loc_gov_ontologies_bibframe_classification__classification_numbers"] div').filter({ hasText: 'Classification numberboltClassWeb Search: QL737.C22ClassWeb Browse: QL737.' }).getByRole('textbox')).toHaveValue('QL737.C22');
2019

2120
await page.getByRole('button', { name: 'bolt' }).click();
2221
await page.getByRole('button', { name: 'Insert Default Values' }).click();

0 commit comments

Comments
 (0)