Skip to content

Commit acaf19f

Browse files
Copilotskjnldsv
andcommitted
fix: use correct attribute selector for stylesheet link check
Agent-Logs-Url: https://github.com/nextcloud/unsplash/sessions/e614a94e-a2a4-4aa3-bbc2-6cac574430f9 Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
1 parent 0ad4c45 commit acaf19f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

playwright/e2e/login-background.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ test.describe('Login page background', () => {
1111

1212
// The BeforeTemplateRenderedEventListener injects a <link> pointing to
1313
// the unsplash CSS endpoint when the login style is enabled (default).
14-
const link = page.locator('link[rel="stylesheet"]').filter({
15-
has: page.locator('[href*="/apps/unsplash/api/login.css"]'),
16-
})
14+
const link = page.locator('link[rel="stylesheet"][href*="/apps/unsplash/api/login.css"]')
1715
await expect(link).toHaveCount(1)
1816
})
1917

0 commit comments

Comments
 (0)