Skip to content

Commit

Permalink
update locators
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Feb 16, 2024
1 parent 46899ee commit 6c81eb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/pw/pages/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7466,8 +7466,8 @@ export const selector = {

cWooSelector: {
wooCommerceSuccessMessage: '.woocommerce-message',
wooCommerceError: '.woocommerce .is-error',
wooCommerceInfo: '.woocommerce .is-info',
wooCommerceError: '.woocommerce-error',
wooCommerceInfo: '.woocommerce-info',
wooCommerceNoriceBanner: 'div.wc-block-components-notice-banner',
wooCommerceNoriceBannerContent: 'div.wc-block-components-notice-banner__content',
},
Expand Down
1 change: 0 additions & 1 deletion tests/pw/tests/api/announcements.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ test.describe('announcements api test', () => {
const [response, responseBody] = await apiUtils.get(endPoints.getAllAnnouncements);
expect(response.ok()).toBeTruthy();
expect(responseBody).toBeTruthy();
console.log(responseBody);
expect(responseBody).toMatchSchema(schemas.announcementsSchema.announcementsSchema);
});

Expand Down
3 changes: 2 additions & 1 deletion tests/pw/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ export const schemas = {
}),
}),

m: z.coerce.date(),
announcementsSchema: z.array(
z.object({
id: z.number(),
Expand All @@ -662,7 +663,7 @@ export const schemas = {
status: z.enum(['all', 'publish', 'pending', 'draft', 'future', 'trash']),
read_status: z.enum(['read', 'unread', '']),
date: z.coerce.date(),
date_gmt: z.coerce.date(),
date_gmt: z.coerce.date().or(z.string()),
human_readable_date: z.string(),
announcement_sellers: z.array(
z.object({
Expand Down

0 comments on commit 6c81eb2

Please sign in to comment.