Skip to content

Commit cf3aa21

Browse files
committed
move esm fixture to correct folder
1 parent 48d8117 commit cf3aa21

3 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/integration_test_nextjs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
mkdir ${{ env.NEXTJS_FOLDER }}/integration-tests
103103
cp -r ./packages/e2e/integration-tests/fixtures ./${{ env.NEXTJS_FOLDER }}/integration-tests
104104
cp -r ./packages/e2e/integration-tests/tests ./${{ env.NEXTJS_FOLDER }}/integration-tests
105+
cp ./packages/e2e/integration-tests/nextjs/check-size-tokens.cy.ts ./${{ env.NEXTJS_FOLDER }}/integration-tests/tests
105106
106107
- name: Excluded cypress tests in-place
107108
# includes temp workaround for cypress bug. remove when fixed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
describe('Size token integration tests', () => {
2+
it('loads shared size tokens without Stack on the page', () => {
3+
cy.visit('http://localhost:3000/button-only')
4+
5+
cy.get('[data-testid="button-only"]').should(button => {
6+
const ownerWindow = button[0].ownerDocument.defaultView
7+
8+
if (!ownerWindow) throw new Error('Expected the Button document to have a window')
9+
10+
const controlSize = ownerWindow.getComputedStyle(button[0]).getPropertyValue('--brand-control-medium-size').trim()
11+
12+
expect(controlSize).not.to.equal('')
13+
})
14+
})
15+
})

packages/e2e/integration-tests/tests/check-warnings.cy.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,4 @@ describe('Integration tests', () => {
2424
expect(windowWarningSpy).to.not.be.called
2525
})
2626
})
27-
28-
it('loads shared size tokens without Stack on the page', () => {
29-
cy.visit('http://localhost:3000/button-only')
30-
31-
cy.get('[data-testid="button-only"]').should(button => {
32-
const ownerWindow = button[0].ownerDocument.defaultView
33-
34-
if (!ownerWindow) throw new Error('Expected the Button document to have a window')
35-
36-
const controlSize = ownerWindow.getComputedStyle(button[0]).getPropertyValue('--brand-control-medium-size').trim()
37-
38-
expect(controlSize).not.to.equal('')
39-
})
40-
})
4127
})

0 commit comments

Comments
 (0)