0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed membership tests in CI

refs 4b646d40ea

- blogUrl config was not set meaning the baseUrl handling in `<GhUrlInput>` picked up the current test URL which can change between test runs, especially when run in parallel using ember-exam
This commit is contained in:
Kevin Ansfield 2022-02-19 22:20:33 +00:00
parent 4b646d40ea
commit 2e42bc1908

View file

@ -20,6 +20,8 @@ describe('Acceptance: Settings - Membership', function () {
this.server.loadFixtures('configs');
this.server.loadFixtures('products');
this.server.db.configs.update(1, {blogUrl: 'http://localhost:2368'})
const role = this.server.create('role', {name: 'Owner'});
this.server.create('user', {roles: [role]});
@ -207,7 +209,7 @@ describe('Acceptance: Settings - Membership', function () {
expect(find('[data-test-input="free-welcome-page"]')).to.exist;
expect(find('[data-test-input="free-welcome-page"]'))
.to.have.value('http://localhost:4200/not%20a%20url');
.to.have.value('http://localhost:2368/not%20a%20url');
// it can manage free tier description and benefits