-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into semantic-release-update
- Loading branch information
Showing
60 changed files
with
5,093 additions
and
50 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
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,5 +1,5 @@ | ||
{ | ||
"chrome:beta": "128.0.6613.36", | ||
"chrome:stable": "127.0.6533.119", | ||
"chrome:stable": "128.0.6613.84", | ||
"chrome:minimum": "64.0.3282.0" | ||
} |
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
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
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
42 changes: 42 additions & 0 deletions
42
packages/app/cypress/e2e/runner/runner-ct.experimentalJustInTimeCompile.cy.ts
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,42 @@ | ||
import type { fixtureDirs } from '@tooling/system-tests' | ||
|
||
type ProjectDirs = typeof fixtureDirs | ||
|
||
const EXPERIMENTAL_JIT_DIR: ProjectDirs[number] = 'experimental-JIT' | ||
|
||
const PROJECTS: {bundler: 'vite' | 'webpack'}[] = [ | ||
{ bundler: 'vite' }, | ||
{ bundler: 'webpack' }, | ||
] | ||
|
||
for (const { bundler } of PROJECTS) { | ||
const PROJECT_NAME = `${EXPERIMENTAL_JIT_DIR}/${bundler}` | ||
|
||
describe(`CT experimentalJustInTimeCompile: ${bundler}`, { viewportWidth: 1500, defaultCommandTimeout: 30000 }, () => { | ||
const visitComponentSpecAndVerifyPass = (specNumber: number) => { | ||
cy.contains(`Component-${specNumber}.cy.jsx`).click() | ||
cy.waitForSpecToFinish(undefined) | ||
cy.get('[aria-label="Stats"] .passed > .num').should('contain', '1') | ||
cy.get('[aria-label="Stats"] .failed > .num').should('contain', '--') | ||
} | ||
|
||
beforeEach(() => { | ||
// @ts-expect-error | ||
cy.scaffoldProject(PROJECT_NAME) | ||
cy.findBrowsers() | ||
}), | ||
|
||
it(`can run multiple CT tests without interruption`, () => { | ||
// @ts-expect-error | ||
cy.openProject(PROJECT_NAME, ['--component']) | ||
cy.startAppServer('component') | ||
cy.visitApp() | ||
cy.specsPageIsVisible() | ||
visitComponentSpecAndVerifyPass(2) | ||
cy.get('[data-cy="sidebar-link-specs-page"]').click() | ||
visitComponentSpecAndVerifyPass(1) | ||
cy.get('[data-cy="sidebar-link-specs-page"]').click() | ||
visitComponentSpecAndVerifyPass(3) | ||
}) | ||
}) | ||
} |
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.