Skip to content
Snippets Groups Projects

BE: Allow customers to extend or reactivate their trial on gitlab.com [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Merged Qingyu Zhao requested to merge 290278-allow-extend-or-reactivate-trial-on-gitlab-com into master
All threads resolved!
3 files
+ 18
28
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -285,21 +285,18 @@ describe('DAST Scanner Profile', () => {
@@ -285,21 +285,18 @@ describe('DAST Scanner Profile', () => {
});
});
describe('when profile does not come from a policy', () => {
describe('when profile does not come from a policy', () => {
let formGroups;
beforeEach(() => {
beforeEach(() => {
createComponent({
createComponent({
propsData: {
propsData: {
profile: defaultProfile,
profile: defaultProfile,
},
},
});
});
formGroups = findAllFormGroups().wrappers;
});
});
it('should enable all form groups', () => {
it('should enable all form groups', () => {
formGroups.forEach((formGroup) => {
expect(
expect(formGroup.attributes('disabled')).toBe(undefined);
findAllFormGroups().wrappers.every((w) => w.attributes('disabled') === undefined),
});
).toBe(true);
});
});
it('should show the policy profile alert', () => {
it('should show the policy profile alert', () => {
@@ -308,15 +305,12 @@ describe('DAST Scanner Profile', () => {
@@ -308,15 +305,12 @@ describe('DAST Scanner Profile', () => {
});
});
describe('when profile does comes from a policy', () => {
describe('when profile does comes from a policy', () => {
let formGroups;
beforeEach(() => {
beforeEach(() => {
createComponent({
createComponent({
propsData: {
propsData: {
profile: policyScannerProfile,
profile: policyScannerProfile,
},
},
});
});
formGroups = findAllFormGroups().wrappers;
});
});
it('should show the policy profile alert', () => {
it('should show the policy profile alert', () => {
@@ -324,9 +318,9 @@ describe('DAST Scanner Profile', () => {
@@ -324,9 +318,9 @@ describe('DAST Scanner Profile', () => {
});
});
it('should disable all form groups', () => {
it('should disable all form groups', () => {
formGroups.forEach((formGroup) => {
expect(findAllFormGroups().wrappers.every((w) => w.attributes('disabled') === 'true')).toBe(
expect(formGroup.attributes('disabled')).toBe('true');
true,
});
);
});
});
it('should disable the save button', () => {
it('should disable the save button', () => {
Loading