Disconnect a library from the open file: the libraries dialog, "Disconnect library" on it, then the dialog closed.
Examples
When I disconnect the library "Style guide"
When we disconnect the library "Style guide"
And I disconnect the library "Style guide"
When I disconnect the library "Webship test library"
When I disconnect the library "Style guide"
Pattern
When(/^(?:I|we) disconnect the library "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.