mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 02:25:23 +00:00
test: revert - skip restore
This commit is contained in:
@@ -13,7 +13,8 @@ export class OpenIDLoginPage extends BasePage {
|
||||
async goto(title = 'test') {
|
||||
// reload page to get latest app info
|
||||
await this.rootPage.reload();
|
||||
await this.rootPage.goto('/?skipRestore=true#/signin/');
|
||||
await this.rootPage.waitForTimeout(1000);
|
||||
await this.rootPage.goto('/#/signin/');
|
||||
// click sign in with SAML
|
||||
await this.rootPage.locator(`button:has-text("Sign in with ${title}")`).click();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ export class SAMLLoginPage extends BasePage {
|
||||
async goto(title = 'test') {
|
||||
// reload page to get latest app info
|
||||
await this.rootPage.reload();
|
||||
await this.rootPage.goto('/?skipRestore=true#/signin/');
|
||||
await this.rootPage.waitForTimeout(1000);
|
||||
await this.rootPage.goto('/#/signin/');
|
||||
// click sign in with SAML
|
||||
await this.rootPage.locator(`button:has-text("Sign in with ${title}")`).click();
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ const setup = async ({
|
||||
}
|
||||
await page.addInitScript(
|
||||
async ({ token }) => {
|
||||
if (location.search?.match(/code=|short-token=|skipRestore/)) return;
|
||||
if (location.search?.match(/code=|short-token=/)) return;
|
||||
try {
|
||||
let initialLocalStorage = {};
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user