mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-08 23:18:05 -05:00
25 lines
679 B
JavaScript
25 lines
679 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
describe('Organization Settings', () => {
|
|
let orgId;
|
|
|
|
beforeEach(() => {
|
|
cy.login(`test@localhost.local`, `testInfisical1`)
|
|
cy.url().then((currentUrl) => {
|
|
orgId = currentUrl.split("/")[4]
|
|
cy.visit(`org/${orgId}/settings`)
|
|
})
|
|
})
|
|
|
|
it('can rename org', () => {
|
|
cy.get('input[placeholder="Acme Corp"]').clear().type('ABC')
|
|
|
|
cy.intercept('PATCH', `/api/v1/organization/${orgId}/name`).as('renameOrg');
|
|
cy.get('form.p-4 > .button').click()
|
|
cy.get('@renameOrg').should('have.property', 'response').and('have.property', 'statusCode', 200);
|
|
|
|
cy.get('.pl-3').should("have.text", "ABC ")
|
|
})
|
|
|
|
})
|