Skip to content

Commit

Permalink
Bring back the new-* template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Dec 4, 2024
1 parent ce94eff commit e5b7e52
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your');
test.expect(h1).toContainText('Welcome to your');

// Take a screenshot once the element is found
await takeScreenshot(page, path.join(__dirname, 'screenshot.png'));
Expand All @@ -38,5 +38,5 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your');
test.expect(h1).toContainText('Welcome to your');

// Take a screenshot once the element is found
await takeScreenshot(page, path.join(__dirname, 'screenshot.png'));
Expand All @@ -38,5 +38,5 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('should exist a default color value', async ({page}) => {
},
await h2.elementHandle()
)
await test.expect(color).toEqual('rgb(255, 255, 255)')
test.expect(color).toEqual('rgb(255, 255, 255)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should exist an element with the welcome message text', async ({
}) => {
await page.goto('chrome://newtab/')
const h1 = page.locator('h1')
await test.expect(h1).toContainText('Welcome to your')
test.expect(h1).toContainText('Welcome to your')
})

test('should exist a default color value', async ({page}) => {
Expand All @@ -29,7 +29,7 @@ test('should exist a default color value', async ({page}) => {
},
await h1.elementHandle()
)
await test.expect(color).toEqual('rgb(201, 201, 201)')
test.expect(color).toEqual('rgb(201, 201, 201)')
})

test.skip('takes a screenshot of the page', async ({page}) => {
Expand Down

0 comments on commit e5b7e52

Please sign in to comment.