Rewrite URL for IE users (#340)

This commit is contained in:
Steve Faulkner 2020-12-18 16:08:40 -06:00 committed by GitHub
parent 6da43ee27b
commit 16bde97e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -101,6 +101,7 @@ jobs:
PLATFORM: "Emulator"
NODE_TLS_REJECT_UNAUTHORIZED: 0
- uses: actions/upload-artifact@v2
if: failure()
with:
name: screenshots
path: failed-*
@ -159,6 +160,7 @@ jobs:
TABLES_CONNECTION_STRING: ${{ secrets.CONNECTION_STRING_TABLE }}
DATA_EXPLORER_ENDPOINT: "https://localhost:1234/hostedExplorer.html"
- uses: actions/upload-artifact@v2
if: failure()
with:
name: screenshots
path: failed-*

View File

@ -54,7 +54,7 @@ describe("Collection Add and Delete SQL spec", () => {
// validate created
// open database menu
await frame.waitForSelector('div[class="splashScreen"] > div[class="title"]', { visible: true });
await frame.waitFor(LOADING_STATE_DELAY);
await frame.waitFor(CREATE_DELAY);
await frame.waitForSelector('div[class="splashScreen"] > div[class="title"]', { visible: true });
const databases = await frame.$$(`div[class="databaseHeader main1 nodeItem "] > div[class="treeNodeHeader "]`);
const selectedDbId = await frame.evaluate(element => {

View File

@ -15,6 +15,15 @@
<action type="Rewrite" value="max-age=31536000; includeSubdomains; preload" />
</rule>
</outboundRules>
<rules>
<rule name="Rewrite for IE users" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_USER_AGENT}" pattern="Trident" />
</conditions>
<action type="Rewrite" value="https://{HTTP_HOST}/ie{REQUEST_URI}"/>
</rule>
</rules>
</rewrite>
<httpProtocol>
<customHeaders>
@ -56,4 +65,4 @@
</staticContent>
</system.webServer>
</location>
</configuration>
</configuration>