Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(quantic): fixed quantic e2e after salesforce 25 winter release #4559

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('quantic-refine-content', () => {
}

describe('when using default options', () => {
it.skip('should render the duplicated facets and the sort component', () => {
it('should render the duplicated facets and the sort component', () => {
visitRefineContent();

scope('when loading the page', () => {
Expand All @@ -77,6 +77,7 @@ describe('quantic-refine-content', () => {
Expect.displayClearAllFiltersButton(true);
Expect.displayDuplicatedTimeframeFacetClearFiltersButton(true);
Expect.displayTimeframeFacetClearFiltersButton(true);
Actions.clickClearAllFilters();
Actions.clickDuplicatedFacetExpandButton();
Actions.clickDuplicatedFacetFirstOption();
Expect.displayClearAllFiltersButton(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@ export const TimeframeFacetSelectors: TimeframeFacetSelector = {
applyButton: () =>
TimeframeFacetSelectors.get().find('.timeframe-facet__apply'),
form: () => TimeframeFacetSelectors.get().find('form'),
validationError: () => TimeframeFacetSelectors.form().find('.slds-has-error'),
validationError: () =>
TimeframeFacetSelectors.form().find(
'.slds-form-element__help[data-error-message]'
),
};
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe('quantic-timeframe-facet', () => {
});

describe('with with-date-picker', () => {
it.skip('should activate manual range', () => {
it('should activate manual range', () => {
visitTimeframeFacet({
withDatePicker: true,
useCase: param.useCase,
Expand Down Expand Up @@ -314,15 +314,15 @@ describe('quantic-timeframe-facet', () => {
Actions.submitForm();

Expect.numberOfValidationErrors(2);
Expect.validationError('Complete this field.');
Expect.validationError('Complete this field');
});

scope('when entering then erasing dates', () => {
Actions.typeStartDate(validRange.start);
Actions.submitForm();

Expect.numberOfValidationErrors(1);
Expect.validationError('Complete this field.');
Expect.validationError('Complete this field');

Actions.typeEndDate(validRange.end);
Actions.submitForm();
Expand All @@ -343,7 +343,7 @@ describe('quantic-timeframe-facet', () => {

Expect.numberOfValidationErrors(1);
Expect.validationError(
'Your entry does not match the allowed format yyyy-MM-dd.'
'Your entry does not match the allowed format'
);
});

Expand All @@ -352,7 +352,7 @@ describe('quantic-timeframe-facet', () => {

Expect.numberOfValidationErrors(1);
Expect.validationError(
'Your entry does not match the allowed format yyyy-MM-dd.'
'Your entry does not match the allowed format'
);
});

Expand Down
Loading