core(ct): rename tests from rerender to update (#18374)

This commit is contained in:
sand4rt 2022-10-31 16:55:29 +01:00 committed by GitHub
parent 490513a017
commit 01d0ff7316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 28 additions and 28 deletions

View File

@ -19,7 +19,7 @@ test('render attributes', async ({ mount }) => {
await expect(component).toHaveClass('primary');
});
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(<Counter count={9001} />)
await expect(component.locator('#props')).toContainText('9001')
@ -30,7 +30,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates callbacks without remounting', async ({ mount }) => {
test('update callbacks without remounting', async ({ mount }) => {
const component = await mount(<Counter />)
const messages: string[] = []
@ -43,7 +43,7 @@ test('renderer updates callbacks without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(<Counter>Default Slot</Counter>)
await expect(component).toContainText('Default Slot')

View File

@ -22,7 +22,7 @@ test('render attributes', async ({ mount }) => {
await expect(component).toHaveClass('primary');
})
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(<Counter count={9001} />)
await expect(component.locator('#props')).toContainText('9001')
@ -33,7 +33,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
});
test('renderer updates callbacks without remounting', async ({ mount }) => {
test('update callbacks without remounting', async ({ mount }) => {
const component = await mount(<Counter />)
const messages: string[] = []
@ -46,7 +46,7 @@ test('renderer updates callbacks without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
});
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(<Counter>Default Slot</Counter>)
await expect(component).toContainText('Default Slot')

View File

@ -19,7 +19,7 @@ test('render attributes', async ({ mount }) => {
await expect(component).toHaveClass('primary');
});
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(<Counter count={9001} />)
await expect(component.getByTestId('props')).toContainText('9001')
@ -34,7 +34,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.getByTestId('remount-count')).toContainText('2')
});
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(<Counter>Default Slot</Counter>)
await expect(component).toContainText('Default Slot')
@ -49,7 +49,7 @@ test('renderer updates slots without remounting', async ({ mount }) => {
await expect(component.getByTestId('remount-count')).toContainText('2')
});
test('renderer updates callbacks without remounting', async ({ mount }) => {
test('update callbacks without remounting', async ({ mount }) => {
const component = await mount(<Counter />)
const messages: string[] = []

View File

@ -34,7 +34,7 @@ test('render props', async ({ mount }) => {
await expect(component).toContainText('Submit')
})
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(Counter, {
props: { count: 9001 }
})
@ -49,7 +49,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const component = await mount(Counter)
const messages: string[] = []

View File

@ -35,7 +35,7 @@ test('render props', async ({ mount }) => {
await expect(component).toContainText('Submit')
})
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(Counter, {
props: { count: 9001 }
})
@ -50,7 +50,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const component = await mount(Counter)
const messages: string[] = []

View File

@ -19,7 +19,7 @@ test('render attributes', async ({ mount }) => {
await expect(component).toHaveClass('primary');
});
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(<Counter count={9001} />)
await expect(component.locator('#props')).toContainText('9001')
@ -30,7 +30,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const component = await mount(<Counter />)
const messages: string[] = []
@ -43,7 +43,7 @@ test('renderer updates event listeners without remounting', async ({ mount }) =>
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(<Counter>Default Slot</Counter>)
await expect(component).toContainText('Default Slot')

View File

@ -19,7 +19,7 @@ test('render props', async ({ mount }) => {
})
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(Counter, {
props: { count: 9001 }
})
@ -34,7 +34,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const component = await mount(Counter)
const messages = []
@ -49,7 +49,7 @@ test('renderer updates event listeners without remounting', async ({ mount }) =>
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(Counter, {
slots: { default: 'Default Slot' }
})

View File

@ -20,7 +20,7 @@ test('render props', async ({ mount }) => {
await expect(component).toContainText('Submit')
})
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(Counter, {
props: { count: 9001 }
})
@ -35,7 +35,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const component = await mount(Counter)
const messages: string[] = []
@ -50,7 +50,7 @@ test('renderer updates event listeners without remounting', async ({ mount }) =>
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(Counter, {
slots: { default: 'Default Slot' }
})

View File

@ -18,7 +18,7 @@ test('render attributes', async ({ mount }) => {
await expect(component).toHaveClass('primary');
});
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(<Counter count={9001} />)
await expect(component.locator('#props')).toContainText('9001')
@ -29,7 +29,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const messages: string[] = []
const component = await mount(<Counter />)
@ -44,7 +44,7 @@ test('renderer updates event listeners without remounting', async ({ mount }) =>
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(<Counter>Default Slot</Counter>)
await expect(component).toContainText('Default Slot')

View File

@ -18,7 +18,7 @@ test('render props', async ({ mount }) => {
await expect(component).toContainText('Submit')
})
test('renderer updates props without remounting', async ({ mount }) => {
test('update props without remounting', async ({ mount }) => {
const component = await mount(Counter, {
props: { count: 9001 }
})
@ -33,7 +33,7 @@ test('renderer updates props without remounting', async ({ mount }) => {
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates event listeners without remounting', async ({ mount }) => {
test('update event listeners without remounting', async ({ mount }) => {
const component = await mount(Counter)
const messages: string[] = []
@ -48,7 +48,7 @@ test('renderer updates event listeners without remounting', async ({ mount }) =>
await expect(component.locator('#remount-count')).toContainText('1')
})
test('renderer updates slots without remounting', async ({ mount }) => {
test('update slots without remounting', async ({ mount }) => {
const component = await mount(Counter, {
slots: { default: 'Default Slot' }
})