Skip to content

Commit

Permalink
test(test): update tests, they were moved to separate PRs #6822, #6821
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed May 31, 2024
1 parent 63fd3b5 commit b04efa4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions packages/sanity/src/core/studio/Studio.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {describe, expect, it, jest} from '@jest/globals'
* c) https://styled-components.com/docs/advanced#server-side-rendering
*/
import {type SanityClient} from '@sanity/client'
import {act} from 'react'
import {hydrateRoot} from 'react-dom/client'
import {renderToStaticMarkup, renderToString} from 'react-dom/server'
import {ServerStyleSheet} from 'styled-components'

Expand Down Expand Up @@ -58,9 +56,6 @@ describe('Studio', () => {
})
it(`SSR to markup for hydration doesn't throw`, () => {
const spy = jest.spyOn(console, 'error')
const node = document.createElement('div')
document.body.appendChild(node)

const sheet = new ServerStyleSheet()
try {
const html = renderToString(sheet.collectStyles(<Studio config={config} />))
Expand Down
4 changes: 0 additions & 4 deletions test/e2e/tests/pte/Toolbar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {expect, type Locator, type Page} from '@playwright/test'
import {test} from '@sanity/test'

import {waitForOpacityChange} from '../utils/waitForOpacityChange'

test.describe('Portable Text Input - Open Block Style Select', () => {
let pteInput: Locator

Expand Down Expand Up @@ -65,8 +63,6 @@ test.describe('Portable Text Input - Open Block Style Select', () => {
// click the block style select
await page.locator('[data-testid="block-style-select"]').nth(1).click()

await waitForOpacityChange(page, '[data-ui="MenuButton__popover"]', 30000)

await expect(await page.locator('[data-ui="MenuButton__popover"]')).toBeVisible()
})
})
Expand Down

0 comments on commit b04efa4

Please sign in to comment.