[e2e tests] External sites - update admin-* folders (#50994)
* Skip `Introduction can be dismissed` * This part is already covered in `Introduction can be dismissed` * Skip Analytics-related tests since there are already some numbers on Pressable website * Include admin related tests into default-pressable test suite * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
This commit is contained in:
parent
dd79e4bf97
commit
013cef959e
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
Update admin-* folders, so e2e tests are passing against Pressable env.
|
|
@ -12,6 +12,9 @@ config = {
|
|||
'**/merchant/products/add-variable-product/**/*.spec.js',
|
||||
'**/activate-and-setup/**/*.spec.js',
|
||||
'**/merchant/products/block-editor/**/*.spec.js',
|
||||
'**/admin-analytics/**/*.spec.js',
|
||||
'**/admin-marketing/**/*.spec.js',
|
||||
'**/admin-tasks/**/*.spec.js',
|
||||
],
|
||||
grepInvert: /@skip-on-default-pressable/,
|
||||
},
|
||||
|
|
|
@ -25,7 +25,7 @@ const test = baseTest.extend( {
|
|||
|
||||
test.describe(
|
||||
'Analytics-related tests',
|
||||
{ tag: [ '@payments', '@services' ] },
|
||||
{ tag: [ '@payments', '@services', '@skip-on-default-pressable' ] },
|
||||
() => {
|
||||
let categoryIds, productIds, orderIds, setupPage;
|
||||
|
||||
|
|
|
@ -27,11 +27,6 @@ test.describe( 'Marketing page', () => {
|
|||
).toBeVisible();
|
||||
|
||||
// Sections present
|
||||
await expect(
|
||||
page.getByText(
|
||||
'Reach new customers and increase sales without leaving WooCommerce'
|
||||
)
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByText( 'Channels', { exact: true } )
|
||||
).toBeVisible();
|
||||
|
@ -55,9 +50,14 @@ test.describe( 'Marketing page', () => {
|
|||
).toBeVisible();
|
||||
} );
|
||||
|
||||
test( 'Introduction can be dismissed', async ( { page } ) => {
|
||||
test(
|
||||
'Introduction can be dismissed',
|
||||
{ tag: '@skip-on-default-pressable' },
|
||||
async ( { page } ) => {
|
||||
// Go to the Marketing page.
|
||||
await page.goto( 'wp-admin/admin.php?page=wc-admin&path=%2Fmarketing' );
|
||||
await page.goto(
|
||||
'wp-admin/admin.php?page=wc-admin&path=%2Fmarketing'
|
||||
);
|
||||
|
||||
// Dismiss the introduction (if it's visible)
|
||||
try {
|
||||
|
@ -86,7 +86,8 @@ test.describe( 'Marketing page', () => {
|
|||
'Reach new customers and increase sales without leaving WooCommerce'
|
||||
)
|
||||
).toBeHidden();
|
||||
} );
|
||||
}
|
||||
);
|
||||
|
||||
test( 'Learning section can be expanded', async ( { page } ) => {
|
||||
// Go to the Dashboard page (this adds time for posts to be created)
|
||||
|
|
Loading…
Reference in New Issue