Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3a967d0
Create test
pawelfus Jan 31, 2020
4a2e268
PR TEST 1
Izothep Feb 6, 2020
12208aa
Another test
Izothep Feb 6, 2020
888b236
Create test4
Izothep Feb 11, 2020
12f6c9e
Create test6
Izothep Feb 11, 2020
21aa76c
Create test7
Izothep Feb 11, 2020
0009fef
Create test8
Izothep Feb 11, 2020
8633137
Merge pull request #7 from pawelfus/patch-1
Izothep Feb 11, 2020
10aaaff
Merge pull request #43 from izothep-projects/Izothep-patch-6
Izothep Feb 11, 2020
fee8625
Create 1
Izothep Feb 12, 2020
778a53a
Merge pull request #47 from izothep-projects/Izothep-patch-8
Izothep Feb 12, 2020
cd8a3fb
Create test9
Izothep Feb 27, 2020
4f9123c
Merge pull request #57 from izothep-projects/Izothep-patch-14
Izothep Feb 27, 2020
22a7d24
Create newPR3
Izothep Feb 27, 2020
aa7bc12
Create namenamename
Izothep Mar 24, 2020
7421d67
Merge pull request #76 from izothep-projects/Izothep-patch-26
Izothep Mar 24, 2020
0758bfd
ss
Izothep Dec 10, 2020
bb2fde3
Create aaa
Izothep Dec 10, 2020
b237313
Merge pull request #93 from izothep-projects/Izothep-patch-29
Izothep Dec 10, 2020
1bd439c
Merge pull request #92 from izothep-projects/Izothep-patch-28
Izothep Dec 10, 2020
7f29da8
Merge pull request #84 from izothep-projects/master
Izothep Dec 10, 2020
a9c8cd3
Revert "test7"
Izothep Dec 10, 2020
971e473
Merge pull request #94 from izothep-projects/revert-84-master
Izothep Dec 10, 2020
2e1c3b1
Merge pull request #95 from izothep-projects/Izothep-patch-6
Izothep Dec 10, 2020
9559e06
Merge pull request #85 from izothep-projects/master
Izothep Dec 10, 2020
febacf0
Merge pull request #82 from izothep-projects/master
Izothep Dec 10, 2020
9336294
Merge pull request #81 from izothep-projects/Izothep-patch-2
Izothep Dec 10, 2020
71c47bc
Merge pull request #80 from izothep-projects/Izothep-patch-1
Izothep Dec 10, 2020
c8a8255
tst
Izothep Feb 9, 2021
4781b2c
Merge pull request #96 from izothep-projects/Izothep-patch-30
Izothep Feb 9, 2021
7cf5b8c
testAnother
Izothep Feb 9, 2021
1dcf4ff
Merge pull request #97 from izothep-projects/Izothep-patch-31
Izothep Feb 9, 2021
de6c8fd
Merge pull request #64 from izothep-projects/Izothep-patch-17
Izothep Feb 19, 2021
bdb4263
Create fileForTest
Izothep Feb 25, 2021
3ef9f6c
Merge pull request #101 from izothep-projects/Izothep-patch-33
Izothep Feb 25, 2021
d8e40a1
Create work_please
Izothep Feb 25, 2021
fafaf72
Merge pull request #104 from izothep-projects/Izothep-patch-35
Izothep Feb 25, 2021
1800908
Create pr_test_4
Izothep Feb 25, 2021
63734cc
Merge pull request #113 from izothep-projects/Izothep-patch-39
Izothep Feb 25, 2021
42a08d6
Create xx
Izothep Feb 26, 2021
21f6c01
Merge pull request #129 from izothep-projects/Izothep-patch-44
Izothep Feb 26, 2021
849c5b4
Added toast.
bre1470 Aug 9, 2022
5202f8e
Merge pull request #142 from izothep-projects/Izothep-patch-7
pawellysy Aug 9, 2022
e33524d
Fixed typo.
bre1470 Aug 10, 2022
bc69aca
Merge pull request #145 from izothep-projects/ts/toastscript
bre1470 Aug 11, 2022
8fd3415
Fixed #146, test scenario 1.
pawelfus Aug 12, 2022
ebddb1a
Merge pull request #147 from izothep-projects/features/146
pawellysy Aug 12, 2022
2845490
Fixed typo.
pawelfus Aug 18, 2022
984c357
Merge pull request #152 from izothep-projects/docs/fixing-typo
pawellysy Aug 18, 2022
00b0cbc
Merge pull request #155 from izothep-projects/Izothep-patch-2
pawellysy Sep 14, 2022
d787ca6
Revert "Another test"
pawellysy Sep 14, 2022
291bee8
Merge pull request #156 from izothep-projects/revert-155-Izothep-patch-2
pawellysy Sep 14, 2022
16f7070
Merge pull request #157 from izothep-projects/Izothep-patch-1
pawellysy Sep 14, 2022
d7c1311
Merge pull request #158 from izothep-projects/Izothep-patch-4
Sep 14, 2022
09727c2
Merge pull request #168 from izothep-projects/Izothep-patch-2
Jul 3, 2023
b479ad1
Revert "Izothep patch 2"
pawellysy Jul 3, 2023
ea871cb
Merge pull request #169 from izothep-projects/revert-168-Izothep-patch-2
Jul 3, 2023
05f80ab
Revert "Revert "Izothep patch 2""
pawellysy Jul 3, 2023
8b224e8
Merge pull request #170 from izothep-projects/revert-169-revert-168-I…
Jul 3, 2023
db62e9d
added playwright + browserstack test in gh actions
Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions .github/workflows/playwright-browserstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Playwright Browserstack Tests

on:
pull_request:
branches: [ main, master ]
workflow_dispatch:

jobs:
test_playwright_browserstack:
timeout-minutes: 60
runs-on: ubuntu-latest
environment: browserstack
name: Playwright

steps:
- name: 'BrowserStack Env Setup' # Invokes the setup-env action
uses: browserstack/github-actions/setup-env@master
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_KEY }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: |
npm i
npm i https://github.com/browserstack/node-js-playwright-browserstack.git

- name: Checkout utils
uses: actions/checkout@v4
with:
repository: highcharts/highcharts-utils
path: utils
fetch-depth: 1

- name: Install Highcharts Utils
run: |
cd utils
npm i

- name: Update Chrome
if: ${{ runner.os == 'Linux' }}
run: |
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
sudo apt --only-upgrade install google-chrome-stable

- name: Chrome info
run: |
set CHROME_BIN $(which chrome || which google-chrome || which chromium)
echo $CHROME_BIN
$CHROME_BIN --version
- uses: nanasess/setup-chromedriver@v2
- uses: browser-actions/setup-firefox@latest
with:
firefox-version: latest-esr
- uses: browser-actions/setup-geckodriver@latest

- name: Setup Display
run: |
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &


- name: 'BrowserStack Env Setup' # Invokes the setup-env action
uses: browserstack/github-actions/setup-env@master
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_KEY }}

- name: 'BrowserStackLocal Setup'
uses: 'browserstack/github-actions/setup-local@master'
with:
local-testing: start
local-identifier: 'abc123'

- name: Run Playwright tests
env:
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_KEY }}
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
run: |
export DISPLAY=:99
npx browserstack-node-sdk playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

- name: 'BrowserStackLocal Stop'
uses: 'browserstack/github-actions/setup-local@master'
with:
local-testing: stop
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
13 changes: 13 additions & 0 deletions browserstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
projectName: Highcharts
buildName: highcharts build
buildIdentifier: '#${BUILD_NUMBER}'
platforms:
- deviceName: Samsung Galaxy S22 Ultra
browserName: chrome
osVersion: 12.0
parallelsPerPlatform: 1
debug: true
browserstackLocal: true
networkLogs: false
consoleLogs: errors
testObservability: true
1 change: 1 addition & 0 deletions fileForTest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
1 change: 1 addition & 0 deletions newPR3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

91 changes: 91 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "projects-test",
"version": "1.0.0",
"description": "Used for testing possibilities of GH projects",
"main": "test2.js",
"directories": {
"test": "test"
},
"scripts": {},
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.46.1",
"@types/node": "^22.5.0"
}
}
50 changes: 50 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { defineConfig, devices } from "@playwright/test";

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// dotenv.config({ path: path.resolve(__dirname, '.env') });

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: "./test/playwright",
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:3030/samples/",

viewport: { width: 1280, height: 720 },
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},

/* Configure projects for major browsers */
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},

],

/* Run your local dev server before starting the tests */
webServer: {
command: "node utils/server --localOnly",
url: "http://127.0.0.1:3030",
reuseExistingServer: !process.env.CI,
},
});
1 change: 1 addition & 0 deletions pr_test_4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
18 changes: 18 additions & 0 deletions test/playwright/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
10 changes: 10 additions & 0 deletions test/playwright/stock-tools.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { test, expect } from '@playwright/test';

test('stock tools gui is working', async ({ page }) => {

const urlPrefix = "view?path=";
await page.goto(urlPrefix + 'highcharts/cypress/stock-tools-gui');
await page.locator('.highcharts-indicators').first().click();
await page.locator('div.highcharts-popup').isVisible();
});

1 change: 1 addition & 0 deletions test3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return 2;
1 change: 1 addition & 0 deletions test4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d
1 change: 1 addition & 0 deletions test6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions test8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dd
1 change: 1 addition & 0 deletions testAnother
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
s
1 change: 1 addition & 0 deletions test_again
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
Loading