Skip to content

Commit

Permalink
test: use 4 workers, disable timezone test (#5044)
Browse files Browse the repository at this point in the history
# What this PR does
Toggle off timezone test temporarily
Use 4 workers always

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
  • Loading branch information
brojd authored Sep 19, 2024
1 parent 1bed73a commit 3a125e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion grafana-plugin/e2e-tests/schedules/timezones.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ dayjs.extend(isoWeek);

test.use({ timezoneId: MOSCOW_TIMEZONE }); // GMT+3 the whole year

test('dates in schedule are correct according to selected current timezone', async ({ adminRolePage }) => {
// The test is skipped because using Clock API breaks several other tests that run in parallel
test.skip('dates in schedule are correct according to selected current timezone', async ({ adminRolePage }) => {
const { page, userName } = adminRolePage;

/**
Expand Down
4 changes: 1 addition & 3 deletions grafana-plugin/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ export default defineConfig({
* to flaky tests.. let's allow 1 retry per test
*/
retries: 1,
workers: '25%', // 25% of logical CPU cores, e.g. for 16 CPU cores it will use 4 workers
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
// reporter: 'html',
workers: 4,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
Expand Down

0 comments on commit 3a125e0

Please sign in to comment.