Skip to content

Commit

Permalink
Fix build spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Dec 7, 2024
1 parent 5981c6d commit d477a79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions examples/new/template.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ test('should exist an element with the welcome message text', async ({
page
}) => {
await page.goto('chrome://newtab/')

const h1 = await page.waitForSelector('h1', {state: 'visible', timeout: 5000})

const h1 = await page.waitForSelector('h1', {
state: 'visible',
timeout: 10000
})
const textContent = await h1.textContent()
test.expect(textContent).toMatch(/Welcome to your/i)
})
Expand Down
16 changes: 9 additions & 7 deletions programs/develop/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,15 @@ describe('extension build', () => {
'content_scripts/content-0.js'
)

expect(
distFileExists(
template.name,
SUPPORTED_BROWSERS[0],
'content_scripts/content-0.css'
)
).toBeTruthy()
// Since extension@2.0.0-beta-6, the content script is injected
// into the shadow DOM. Including in production mode.
// expect(
// distFileExists(
// template.name,
// SUPPORTED_BROWSERS[0],
// 'content_scripts/content-0.css'
// )
// ).toBeTruthy()

expect(
distFileExists(
Expand Down

0 comments on commit d477a79

Please sign in to comment.