Skip to content

Commit 7ab41a3

Browse files
authored
Merge pull request #1245 from mito-ds/reorg-tests-graph
Reorganize tests to run faster by moving graph tests into separate CI
2 parents 9c041c7 + 847785b commit 7ab41a3

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/test-mitosheet-frontend.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
install-name: 'chrome'
133133
- test-name: 'Microsoft Edge'
134134
install-name: 'msedge'
135-
testfiles: ['taskpanes', 'grid', 'toolbar']
135+
testfiles: ['taskpanes', 'grid', 'toolbar', 'graph']
136136
exclude:
137137
- os: 'windows-latest'
138138
project:

tests/streamlit_ui_tests/taskpanes/graph.spec.ts tests/streamlit_ui_tests/graph.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FrameLocator, Page, expect, test } from '@playwright/test';
2-
import { awaitResponse, clickButtonAndAwaitResponse, clickTab, fillInput, getMitoFrameWithTestCSV, getMitoFrameWithTypeCSV } from '../utils';
2+
import { awaitResponse, clickButtonAndAwaitResponse, clickTab, fillInput, getMitoFrameWithTestCSV, getMitoFrameWithTypeCSV } from './utils';
33

44
test.describe.configure({ mode: 'parallel' });
55

tests/streamlit_ui_tests/taskpanes/formatting.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from '@playwright/test';
2-
import { getMitoFrameWithTestCSV } from '../utils';
2+
import { awaitResponse, getMitoFrameWithTestCSV } from '../utils';
33

44
test.describe('Formatting', () => {
55
test('Add a suggested style', async ({ page }) => {
@@ -12,6 +12,7 @@ test.describe('Formatting', () => {
1212

1313
// Update to the third suggested style
1414
await mito.locator('.mito-suggested-style').nth(2).click();
15+
await awaitResponse(page);
1516
await expect(mito.locator('.endo-column-header-container:not(.endo-column-header-container-selected)').first()).toHaveCSS('background-color', 'rgb(84, 157, 58)')
1617
await expect(mito.locator('.mito-grid-row-even').first()).toHaveCSS('background-color', 'rgb(208, 227, 201)')
1718
await expect(mito.locator('.mito-grid-row-odd').first()).toHaveCSS('background-color', 'rgb(255, 255, 255)')

0 commit comments

Comments
 (0)