Skip to content

Commit

Permalink
chore: skip flaky tests on windows only [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Nov 8, 2022
1 parent 1924e6a commit 79ccaae
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -12,9 +12,12 @@ const PROJECTS: {projectName: ProjectDirs[number], test: string}[] = [
{ projectName: 'nuxtjs-vue2-configured', test: 'Tutorial.cy' },
]

// These are especially flaky on windows, skipping them there.
const describeSkipIfWindows = Cypress.platform === 'win32' ? it.skip : it

// TODO: Add these tests to another cy-in-cy framework test to reduce CI cost as these scaffolding is expensive
for (const { projectName, test } of PROJECTS) {
describe(`CT Mount ${projectName}`, { viewportWidth: 1500, defaultCommandTimeout: 30000 }, () => {
describeSkipIfWindows(`CT Mount ${projectName}`, { viewportWidth: 1500, defaultCommandTimeout: 30000 }, () => {
beforeEach(() => {
cy.scaffoldProject(projectName)
cy.findBrowsers()
Expand Down

0 comments on commit 79ccaae

Please sign in to comment.