mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
core(ct): rename tests from rerender to update (#18374)
This commit is contained in:
parent
490513a017
commit
01d0ff7316
@ -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')
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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[] = []
|
||||
|
@ -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[] = []
|
||||
|
@ -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[] = []
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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' }
|
||||
})
|
||||
|
@ -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' }
|
||||
})
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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' }
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user