Skip to content

Commit a444e06

Browse files
authored
Remove nightly integration test related files (#39)
* remove files related to nightly integration project * changing workflow to run on ubuntu 20.04 to avoid dependency issues * changing workflow to run on ubuntu 20.04 to avoid dependency issues * not making any changes, just trying to retrigger github actions * changed github action back to original
1 parent dc8d47f commit a444e06

File tree

5 files changed

+37
-193
lines changed

5 files changed

+37
-193
lines changed

.github/workflows/playwright-onDemand.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/playwright-scheduled.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Playwright tests
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
schedule:
12+
# nightly
13+
- cron: '0 0 * * *'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: [14.x, 16.x]
22+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v2
27+
with:
28+
node-version: '14'
29+
- name: Install dependencies
30+
run: npm ci
31+
- name: Install Playwright
32+
run: npx playwright install --with-deps
33+
- name: Build production build
34+
run: npm run build
35+
- name: Run your tests
36+
run: npm run test
37+

playwright.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { PlaywrightTestConfig } from '@playwright/test';
22
const config: PlaywrightTestConfig = {
33
use: {
4-
trace: 'on',
54
baseURL: "http://localhost:3000/"
65
},
76
webServer: {
@@ -10,10 +9,5 @@ const config: PlaywrightTestConfig = {
109
timeout: 120 * 1000,
1110
reuseExistingServer: !process.env.CI,
1211
},
13-
reporter: [
14-
['html', { outputFolder: 'pw-report' }],
15-
['json', { outputFolder: 'pw-report', outputFile: 'report.json' }]
16-
],
17-
1812
};
1913
export default config;

test/integration.spec.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,3 @@ test('should have stats', async ({ page }) => {
1818
const numberOfStars = await page.innerText('.stats-details:first-of-type div p')
1919
expect(Number(numberOfStars)).toBeGreaterThan(100000);
2020
})
21-
22-
test('goes back to home page', async ({ page }) => {
23-
// Start from the index page (the baseURL is set via the webServer in the playwright.config.ts)
24-
await page.goto('/project/nuxt-nuxtjs/')
25-
// Find an element with the text 'Home' and click on it
26-
await page.click('text=Home')
27-
// The new page should be the home page and contain an h1 with 'What Can I Deploy to Static Apps?'
28-
await expect(page).toHaveURL('/')
29-
})

0 commit comments

Comments
 (0)