Skip to content
Snippets Groups Projects
Unverified Commit d7ed835a authored by Cal Herries's avatar Cal Herries Committed by GitHub
Browse files

Add missing @external tag to test introduced by #33990 (#34073)

parent 72f7eea1
No related branches found
No related tags found
No related merge requests found
......@@ -208,41 +208,45 @@ describe("permissions", () => {
});
});
it("should show you upload buttons if you have unrestricted access to the upload schema", () => {
restore("postgres-12");
cy.signInAsAdmin();
it(
"should show you upload buttons if you have unrestricted access to the upload schema",
{ tags: ["@external"] },
() => {
restore("postgres-12");
cy.signInAsAdmin();
setTokenFeatures("all");
enableUploads("postgres");
setTokenFeatures("all");
enableUploads("postgres");
cy.updatePermissionsGraph({
[ALL_USERS_GROUP]: {
[WRITABLE_DB_ID]: {
data: {
schemas: "block",
cy.updatePermissionsGraph({
[ALL_USERS_GROUP]: {
[WRITABLE_DB_ID]: {
data: {
schemas: "block",
},
},
},
},
[NOSQL_GROUP]: {
[WRITABLE_DB_ID]: {
data: {
schemas: "all",
[NOSQL_GROUP]: {
[WRITABLE_DB_ID]: {
data: {
schemas: "all",
},
},
},
},
});
});
cy.updateCollectionGraph({
[NOSQL_GROUP]: { root: "write" },
});
cy.updateCollectionGraph({
[NOSQL_GROUP]: { root: "write" },
});
cy.signIn("nosql");
cy.visit("/collection/root");
cy.findByTestId("collection-menu").within(() => {
cy.findByLabelText("Upload data").should("exist");
cy.findByRole("img", { name: /upload/i }).should("exist");
});
});
cy.signIn("nosql");
cy.visit("/collection/root");
cy.findByTestId("collection-menu").within(() => {
cy.findByLabelText("Upload data").should("exist");
cy.findByRole("img", { name: /upload/i }).should("exist");
});
},
);
});
function uploadFile(testFile, valid = true) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment