-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
458 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: typecheck | ||
on: | ||
push: | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
type-check: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: e2e | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
TZ: 'Asia/Tokyo' | ||
|
||
jobs: | ||
run-e2e-tests: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: unittest | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
TZ: 'Asia/Tokyo' | ||
|
||
jobs: | ||
run-unit-tests: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('time + delta, time + number(days)', async ({ page }) => { | ||
await page.goto('http://localhost:5233/iframe.html?id=basic--small&viewMode=story'); | ||
const a4 = page.locator("[data-address='A4']"); | ||
const b4 = page.locator("[data-address='B4']"); | ||
const c4 = page.locator("[data-address='C4']"); | ||
const a5 = page.locator("[data-address='A5']"); | ||
|
||
expect(await a4.locator('.gs-cell-rendered').textContent()).toBe('2022-03-05 12:34:56'); | ||
expect(await b4.locator('.gs-cell-rendered').textContent()).toBe('11:11:11'); | ||
expect(await c4.locator('.gs-cell-rendered').textContent()).toBe('2022-03-05 23:46:07'); | ||
expect(await a5.locator('.gs-cell-rendered').textContent()).toBe('2022-03-04 23:34:56'); | ||
}); | ||
|
||
test('input DD MMM [YYYY] format', async ({ page }) => { | ||
await page.goto('http://localhost:5233/iframe.html?id=basic--small&viewMode=story'); | ||
|
||
const b5 = page.locator("[data-address='B5']"); | ||
await b5.click(); | ||
await page.keyboard.type('30 Nov'); | ||
await page.keyboard.press('Enter'); | ||
expect(await b5.locator('.gs-cell-rendered').textContent()).toBe('2001-11-29 15:00:00'); | ||
|
||
const c5 = page.locator("[data-address='C5']"); | ||
await c5.click(); | ||
await page.keyboard.type('30 Nov 2024'); | ||
await page.keyboard.press('Enter'); | ||
expect(await c5.locator('.gs-cell-rendered').textContent()).toBe('2024-11-29 15:00:00'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.