Skip to content

Commit

Permalink
update e2e test db name
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy committed Oct 23, 2023
1 parent 61a4415 commit e6f9dc3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/compass-e2e-tests/tests/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ describe('Connection screen', function () {
assertNotError(result);
expect(result).to.have.property('ok', 1);

await assertCanReadData(browser, 'companies', 'info');
await assertCanReadData(browser, 'compass_e2e', 'companies_info');
});

it('can connect with readAnyDatabase builtin role', async function () {
Expand All @@ -573,10 +573,14 @@ describe('Connection screen', function () {
assertNotError(result);
expect(result).to.have.property('ok', 1);

await assertCanReadData(browser, 'companies', 'info');
await assertCannotInsertData(browser, 'companies', 'info');
await assertCanReadData(browser, 'compass_e2e', 'companies_info');
await assertCannotInsertData(browser, 'compass_e2e', 'companies_info');
await assertCannotCreateDb(browser, 'new-db', 'new-collection');
await assertCannotCreateCollection(browser, 'companies', 'new-collection');
await assertCannotCreateCollection(
browser,
'compass_e2e',
'new-collection'
);
});

it('can connect with custom role', async function () {
Expand Down

0 comments on commit e6f9dc3

Please sign in to comment.