Use slug directly instead of as text
This commit is contained in:
parent
7cbed7f5dc
commit
000e1a256b
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable jest/no-export*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -55,7 +53,7 @@ const runAddShippingClassesTest = () => {
|
||||||
for (const { name, slug, description } of shippingClasses) {
|
for (const { name, slug, description } of shippingClasses) {
|
||||||
const row = await expect(
|
const row = await expect(
|
||||||
page
|
page
|
||||||
).toMatchElement('.wc-shipping-class-rows tr', { text: slug });
|
).toMatchElement('.wc-shipping-class-rows tr', slug);
|
||||||
|
|
||||||
await expect(row).toMatchElement(
|
await expect(row).toMatchElement(
|
||||||
'.wc-shipping-class-name',
|
'.wc-shipping-class-name',
|
||||||
|
|
Loading…
Reference in New Issue